From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH v9 5/6] i2c: designware: add SLAVE mode functions Date: Thu, 11 May 2017 16:32:24 +0300 Message-ID: <1494509544.6967.6.camel@linux.intel.com> References: <1494262399.30052.69.camel@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-i2c-owner@vger.kernel.org To: Jarkko Nikula , Luis Oliveira , wsa@the-dreams.de, robh+dt@kernel.org, mark.rutland@arm.com, mika.westerberg@linux.intel.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ramiro.Oliveira@synopsys.com, Joao.Pinto@synopsys.com, CARLOS.PALMINHA@synopsys.com List-Id: devicetree@vger.kernel.org On Thu, 2017-05-11 at 16:20 +0300, Jarkko Nikula wrote: > On 05/08/2017 07:53 PM, Andy Shevchenko wrote: > > > + } else if (reg == (DW_IC_COMP_TYPE_VALUE & 0x0000ffff)) { > > > > GENMASK(15, 0) > > > > I don't think this increase readability compared to 0x0000ffff here. If it's a defined constant it might do, otherwise I'm fine with explicit value. -- Andy Shevchenko Intel Finland Oy