Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4274250imu; Mon, 28 Jan 2019 21:41:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN4AMRuu3WyWNuw0NYE8uDLDOJy0sCUM5XyDL/cdbw19XVXoxVYPS6l+Gctac+t+zshuT4SG X-Received: by 2002:a63:7e1a:: with SMTP id z26mr21905617pgc.216.1548740482119; Mon, 28 Jan 2019 21:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548740482; cv=none; d=google.com; s=arc-20160816; b=etWiE+oY+f/LcSQpQg3hNMI3Vy58oR9Et7Ki6AWwU6rDcztOzZ1n/n7PuzM7j9ZsZv iKekHadAul7j3Co6/Egb/tx7srLsvnGM5iPFrsTXtRTSBFRsP5ouFruU9L6j/48fZkVW 9Q473YVnl3yuOTu1T9MFYyyajkghATLmBfQy3Xh3tOIriEDtrtiWlqXwu+y/0SdzZVQx tto0zXOYdbqlqeQ/kn1x6eF+DrVzRHo7dUQ3K1jY/VUFqU00norYYkndAWzl3PJmYI71 hPdJquEdM/BdlfdeAWU0jL92HLn+pXFn5uk+gI42h1AUhZkRSp2kMwVqmmpkn3TlzP1r fCEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=3Mte8KlSopKQexZ8/d+TufCAj+RZLDglDnSDNjTNLqI=; b=pN0IAmWlcIF8N/79FmNE00cBQrmp0pNes5hEaG3gAXBMJlWkhd1fdveq7Yd7vj2MFC MfQBORMfIf4l3D5tUJSXilRHPVG9K4hPLk1kkIkBFB0HfAaDpl2BTlGYKERvnJQRo0Xo sawy8XHcdsXk4ySEjBQqLcx1vI9SJMlkz310UmaGrL/C8fQV++DDGljBs8wqhwCLowom HUj7zaR1DwZBnVi6xQkB+DQ611kmv5Lx53btUC2VNvju8lg3OEusNCCJyPNUBL/Wd9FP XPXp46wrc0qcmZSCJHGV5MGKTNI28FNVdz6Xsg0LYkjpRIbA4Wkt18vzBOAqlP1QhZM+ uHuA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si4363499pgr.345.2019.01.28.21.41.06; Mon, 28 Jan 2019 21:41:22 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726164AbfA2Fk7 (ORCPT + 99 others); Tue, 29 Jan 2019 00:40:59 -0500 Received: from smtprelay0123.hostedemail.com ([216.40.44.123]:42777 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725536AbfA2Fk7 (ORCPT ); Tue, 29 Jan 2019 00:40:59 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 9D7118368EF5; Tue, 29 Jan 2019 05:40:57 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3873:4321:5007:10004:10400:10848:11026:11232:11473:11658:11914:12043:12296:12438:12740:12760:12895:13069:13095:13311:13357:13439:13972:14181:14659:14721:21080:21433:21451:21524:21627:30054:30070:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: scarf45_4268684d3b636 X-Filterd-Recvd-Size: 1941 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Tue, 29 Jan 2019 05:40:56 +0000 (UTC) Message-ID: <533e48bd35d360cec8d749f3b70425c1eb5e6e9d.camel@perches.com> Subject: Re: [RESEND PATCH v2 8/8] Input: sx8654 - convert #defined flags to BIT(x) From: Joe Perches To: Dmitry Torokhov , Richard Leitner Cc: mark.rutland@arm.com, robh+dt@kernel.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 28 Jan 2019 21:40:54 -0800 In-Reply-To: <20190129002518.GH34692@dtor-ws> References: <20181218083606.25795-1-richard.leitner@skidata.com> <20181218084002.19454-1-richard.leitner@skidata.com> <20190129002518.GH34692@dtor-ws> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-01-28 at 16:25 -0800, Dmitry Torokhov wrote: > On Tue, Dec 18, 2018 at 09:40:02AM +0100, Richard Leitner wrote: > > Some of the #defined register values are one-bit flags. Convert them to > > use the BIT(x) macro instead of 1 byte hexadecimal values. This improves > > readability and clarifies the intent. > > > > Signed-off-by: Richard Leitner > > Applied, thank you. Not so sure this should be applied. > > diff --git a/drivers/input/touchscreen/sx8654.c b/drivers/input/touchscreen/sx8654.c [] > > @@ -46,7 +47,7 @@ [] > > /* bits for I2C_REG_IRQSRC */ > > -#define IRQ_PENTOUCH_TOUCHCONVDONE 0x08 > > -#define IRQ_PENRELEASE 0x04 > > +#define IRQ_PENTOUCH_TOUCHCONVDONE BIT(7) > > +#define IRQ_PENRELEASE BIT(6) Shouldn't this be BIT(3) and BIT(2) or did you mean to change the values too? If so, this change should be noted in the commit message.