Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4543455imu; Tue, 29 Jan 2019 03:30:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Vt+r2rxQ8Qqn+ts1FORUC6aB9CK9cGIKLhLkx6d+I9edXOI3qpKCc3KtEcWl1cYx3NZLC X-Received: by 2002:a63:c0f:: with SMTP id b15mr23548463pgl.314.1548761436196; Tue, 29 Jan 2019 03:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548761436; cv=none; d=google.com; s=arc-20160816; b=yvCv54z0smpHGjWSBGog/hf37QvaAOEb1c8N2AlqyL/V2smcMqvLOKOgSlq2LA8VE3 TyDoWMrMfB3FouDQ3IeawAlJjbk5A8XHJfhwv/heJddSIQdto+ufI/N1NTZ7sfXYQjja h/qAAnrzDO5u1FNNeDtLosmqpuzAc0YjGTnVS2AfVctNk/2TkSAXKQjhqOPjSWqoDyB8 XMmibmXfBcwXpzvzt4KJSSXxj4/hUDcWYlmTFDuWCiDvFkt6uahRLciABIrMKgwfKESn 38zEcH0Lzc6C/LGb0OdksxYvMTQj4ySirD/1IhDdW+cWh2D3k68WcmLrwl4E7U8xossb vyjw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2ulBIWcCQTVecH1eSL3UmXbeafVsjTRcc9b+g4PibIg=; b=cFCX5oE68i/RPlA7oqCGozT06sZhP7KG66bcMWjroHbfgqdWbjKK+IOQM5jLsf3lA/ dfbkbudBECq8/xPDBnpFOk1RiC72FXBcKUZVI42UyV0e8NTocE4RMHQbd5jCFApRcCur 0eiv5IwzbHIkaKYE0fjz5SG1OK0lAdN8w0QjE71FUQr9uiiWssSodL7bKqtUKvDf4BPg PzJ7eUNeCpMPmNkXeEQpezma6uS9qeKdceyByk27p1bT2er23gAl4hFrH4tcVl6dtYc4 JWZ7hddn2vYOnkyLnluvpUzNie4iua98mKFlRjZc7rhf/AIR0OTzlRiDsGhYY0kiIWzt p+1w== 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 r39si36038033pld.434.2019.01.29.03.30.20; Tue, 29 Jan 2019 03:30:36 -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 S1727176AbfA2LaN (ORCPT + 99 others); Tue, 29 Jan 2019 06:30:13 -0500 Received: from mail1.skidata.com ([91.230.2.99]:36103 "EHLO mail1.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbfA2LaN (ORCPT ); Tue, 29 Jan 2019 06:30:13 -0500 X-Greylist: delayed 429 seconds by postgrey-1.27 at vger.kernel.org; Tue, 29 Jan 2019 06:30:12 EST X-IronPort-AV: E=Sophos;i="5.56,537,1539640800"; d="scan'208";a="14781705" Subject: Re: [RESEND PATCH v2 8/8] Input: sx8654 - convert #defined flags to BIT(x) To: Joe Perches , Dmitry Torokhov CC: , , , , References: <20181218083606.25795-1-richard.leitner@skidata.com> <20181218084002.19454-1-richard.leitner@skidata.com> <20190129002518.GH34692@dtor-ws> <533e48bd35d360cec8d749f3b70425c1eb5e6e9d.camel@perches.com> From: Richard Leitner Message-ID: <50c0a3a5-7039-abc0-9b9e-4314504bcb6f@skidata.com> Date: Tue, 29 Jan 2019 12:23:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <533e48bd35d360cec8d749f3b70425c1eb5e6e9d.camel@perches.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.111.252] X-ClientProxiedBy: sdex6srv.skidata.net (192.168.111.84) To sdex5srv.skidata.net (192.168.111.83) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joe, On 29/01/2019 06:40, Joe Perches wrote: > 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. > That's true, those values should stay the same. Thanks for the catch! @Dimitry: Should I send an updated version or do you fix it yourself? regards;Richard.L