From mboxrd@z Thu Jan 1 00:00:00 1970 From: songjun.wu@atmel.com (Wu, Songjun) Date: Wed, 13 Apr 2016 17:24:37 +0800 Subject: [PATCH] atmel-isc: fix compare_const_fl.cocci warnings In-Reply-To: References: Message-ID: <570E1055.60806@atmel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Accept. Thank you for your comments. On 4/13/2016 16:49, Julia Lawall wrote: > Move constants to the right of binary operators. > > Generated by: scripts/coccinelle/misc/compare_const_fl.cocci > > CC: Songjun Wu > Signed-off-by: Fengguang Wu > Signed-off-by: Julia Lawall > --- > > Up to you. Seems a tiny bit more readable to me not to have ISC_DCTRL and > ISC_DCTRL_IE_IS right together. > > atmel-isc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/drivers/media/platform/atmel/atmel-isc.c > +++ b/drivers/media/platform/atmel/atmel-isc.c > @@ -639,7 +639,7 @@ static inline void isc_start_dma(struct > > addr = vb2_dma_contig_plane_dma_addr(&frm->vb.vb2_buf, 0); > > - regmap_write(regmap, ISC_DCTRL, ISC_DCTRL_IE_IS | dview); > + regmap_write(regmap, ISC_DCTRL, dview | ISC_DCTRL_IE_IS); > regmap_write(regmap, ISC_DAD0, addr); > regmap_update_bits(regmap, ISC_CTRLEN, > ISC_CTRLEN_CAPTURE_MASK, ISC_CTRLEN_CAPTURE); > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nasmtp01.atmel.com ([192.199.1.245]:38557 "EHLO nasmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932614AbcDMJYp (ORCPT ); Wed, 13 Apr 2016 05:24:45 -0400 Subject: Re: [PATCH] atmel-isc: fix compare_const_fl.cocci warnings To: Julia Lawall References: CC: , Mauro Carvalho Chehab , Hans Verkuil , Sudip Mukherjee , Mikhail Ulyanov , Fabien Dessenne , Peter Griffin , Benoit Parrot , Laurent Pinchart , Gerd Hoffmann , =?UTF-8?Q?Richard_R=c3=b6jfors?= , , , , , From: "Wu, Songjun" Message-ID: <570E1055.60806@atmel.com> Date: Wed, 13 Apr 2016 17:24:37 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Accept. Thank you for your comments. On 4/13/2016 16:49, Julia Lawall wrote: > Move constants to the right of binary operators. > > Generated by: scripts/coccinelle/misc/compare_const_fl.cocci > > CC: Songjun Wu > Signed-off-by: Fengguang Wu > Signed-off-by: Julia Lawall > --- > > Up to you. Seems a tiny bit more readable to me not to have ISC_DCTRL and > ISC_DCTRL_IE_IS right together. > > atmel-isc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/drivers/media/platform/atmel/atmel-isc.c > +++ b/drivers/media/platform/atmel/atmel-isc.c > @@ -639,7 +639,7 @@ static inline void isc_start_dma(struct > > addr = vb2_dma_contig_plane_dma_addr(&frm->vb.vb2_buf, 0); > > - regmap_write(regmap, ISC_DCTRL, ISC_DCTRL_IE_IS | dview); > + regmap_write(regmap, ISC_DCTRL, dview | ISC_DCTRL_IE_IS); > regmap_write(regmap, ISC_DAD0, addr); > regmap_update_bits(regmap, ISC_CTRLEN, > ISC_CTRLEN_CAPTURE_MASK, ISC_CTRLEN_CAPTURE); >