From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932109AbbG1IGT (ORCPT ); Tue, 28 Jul 2015 04:06:19 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:35701 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932141AbbG1IGG (ORCPT ); Tue, 28 Jul 2015 04:06:06 -0400 Date: Tue, 28 Jul 2015 09:06:01 +0100 From: Lee Jones To: Thomas Gleixner Cc: LKML , Jiang Liu , Samuel Ortiz , Julia Lawall Subject: Re: [patch 8/9] mfd/ucb1x00: Prepare ucb1x00_irq for irq argument removal Message-ID: <20150728080601.GI14943@x1> References: <20150712225758.573960291@linutronix.de> <20150712225930.074652157@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150712225930.074652157@linutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jul 2015, Thomas Gleixner wrote: > irq is incremented for no value in the for loop. Remove it. > > Search and update was done with coccinelle and the invaluable help of > Julia Lawall. > > Signed-off-by: Thomas Gleixner > Cc: Julia Lawall > Cc: Jiang Liu > Cc: Samuel Ortiz > Cc: Lee Jones > --- > drivers/mfd/ucb1x00-core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied, thanks. > Index: tip/drivers/mfd/ucb1x00-core.c > =================================================================== > --- tip.orig/drivers/mfd/ucb1x00-core.c > +++ tip/drivers/mfd/ucb1x00-core.c > @@ -282,7 +282,7 @@ void ucb1x00_adc_disable(struct ucb1x00 > * SIBCLK to talk to the chip. We leave the clock running until > * we have finished processing all interrupts from the chip. > */ > -static void ucb1x00_irq(unsigned int irq, struct irq_desc *desc) > +static void ucb1x00_irq(unsigned int __irq, struct irq_desc *desc) > { > struct ucb1x00 *ucb = irq_desc_get_handler_data(desc); > unsigned int isr, i; > @@ -292,7 +292,7 @@ static void ucb1x00_irq(unsigned int irq > ucb1x00_reg_write(ucb, UCB_IE_CLEAR, isr); > ucb1x00_reg_write(ucb, UCB_IE_CLEAR, 0); > > - for (i = 0; i < 16 && isr; i++, isr >>= 1, irq++) > + for (i = 0; i < 16 && isr; i++, isr >>= 1) > if (isr & 1) > generic_handle_irq(ucb->irq_base + i); > ucb1x00_disable(ucb); > > -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog