Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3843455imm; Mon, 25 Jun 2018 05:38:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIlpInc9lRbYoHQoLrxtPF//Z3moW5kJ3yEzB7Mmt26ZU5Y4tGBZOnh2SAr5/ufW9XIey/T X-Received: by 2002:a65:6604:: with SMTP id w4-v6mr10566000pgv.346.1529930316423; Mon, 25 Jun 2018 05:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529930316; cv=none; d=google.com; s=arc-20160816; b=kkasz2HSvHKx6GwdFxWdw3QOIJJZVW0S24eMlzKkmrHYAwl//DlbbTD40OHZfNCGfz U9KnKJLZEJ5dkwcEWaTpQb3hI7Fz9kyCcwhQsXWe2jXpxTOCLJ2XBGYuw78iEf3Z6Myj +WxxIJsoBkA8c3EPxkXnm40oSepG9r/h/tgJF0DsEVye4MBaUUprBN7sF92118kNiDpa 8gUnb2TdGPDBVa0VhzhRFTSeeJh1SJOjLYaXwvJo2fRAtffVReMtrRUQQ5Q18cifIlIZ G/mjaTf6yPsfMS6vj0P0s9kpdGwuCJDCODGotfP2QI5wcu0ScXxqXFGoPFu/LrhFOLAw CIAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=07VytpmqLKcgeHxIRqRUAdOpODuJLq6uMqpxnYJer2w=; b=jFwehQHraBuhZ2N+yc7WoswOjydjvOFbNgsmrSXCkOkxNen8+7HAsA6biZ6/1eOZwp 8aQGyAKo63G1vQoKfej+L2lOs9xA5j6ccF8bbzmqhQrpVupmVmwhmzRUGjqtL0qF2m60 Dbw+JAsT6h+vxAaGYhIDTQ0dRZEAqyqrnWlLn3VqY99i6LnIMF+C6/PpegJrD4Od7OBy fSP/jJwgjDPQ6Gg6J2r0wwal6kuuwRryh6xQchYVc8abdhETBMRssuwEOvfanZkLSTKO Iynkot8EjD9er41PvDbxZEETzkOGzq/iRy6GXonafV6zZPgrS2bcxxnRad/VBtLwhX2c Er1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=HUP1WXHe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m75-v6si965882pfj.192.2018.06.25.05.38.21; Mon, 25 Jun 2018 05:38:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=HUP1WXHe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933568AbeFYMgz (ORCPT + 99 others); Mon, 25 Jun 2018 08:36:55 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:37588 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932392AbeFYMgy (ORCPT ); Mon, 25 Jun 2018 08:36:54 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5PCXvXa066544; Mon, 25 Jun 2018 12:36:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=07VytpmqLKcgeHxIRqRUAdOpODuJLq6uMqpxnYJer2w=; b=HUP1WXHeGIng4ywf2F3b+Le0U8m1J8G96dtcRf2ATn1HNnRshsCDDYsB7j7qMcsVbB0H zj5//0NOCbKxk1eogwBFLi8zAW7WG7KYW3quSSH3AfQRB5nQ6qzvpJ7x1iISdlys/r4G 4HTwfFH0KbMMGdLaCwJ2anFL7yeNjgsdc7ktm+hC41oc8TUntUpegsKtdLUGwZtEg3UZ ltw2nQtLMNr3JjkqwUCQLeUl8jnANu3auXdhFJmGJL43EmJMxjIu0YD3fC26D2emE+sw sQbRZZaDEBUabS0xtVRsVc90QtijjCnG/4Baweoq5dHR3GDhuOmFXEnBxj7gz0tme2k1 uw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2jt7nathtr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Jun 2018 12:36:13 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5PCaClE001293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Jun 2018 12:36:12 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5PCaA0X016570; Mon, 25 Jun 2018 12:36:10 GMT Received: from mwanda (/197.157.0.49) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Jun 2018 05:36:09 -0700 Date: Mon, 25 Jun 2018 15:35:54 +0300 From: Dan Carpenter To: Valentin Vidic Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, Derek Robson , Michael Panzlaff , Hugo Lefeuvre , Luca =?iso-8859-1?Q?S=F6the?= , linux-kernel@vger.kernel.org, Marcin Ciupak , Marcus Wolf , Simon =?iso-8859-1?Q?Sandstr=F6m?= , Joe Perches Subject: Re: [PATCH v3] staging: pi433: replace simple switch statements Message-ID: <20180625123554.dlpgejqmjm7haak4@mwanda> References: <20180624094245.23741-1-Valentin.Vidic@CARNet.hr> <20180624163138.30976-1-Valentin.Vidic@CARNet.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180624163138.30976-1-Valentin.Vidic@CARNet.hr> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8934 signatures=668703 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=340 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806250147 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'd still prefer if we just removed this abstraction entirely and used OPMODE_MODE_TRANSMIT everywhere instead of bringing "transmit" into it. I know that every author thinks their abstraction will definitely be useful in the future, but generally kernel style is to remove abstractions. But I guess this code is an improvement over the original so the patch is fine. regards, dan carpenter