From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754743AbbG0P7A (ORCPT ); Mon, 27 Jul 2015 11:59:00 -0400 Received: from terminus.zytor.com ([198.137.202.10]:36232 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235AbbG0P66 (ORCPT ); Mon, 27 Jul 2015 11:58:58 -0400 Date: Mon, 27 Jul 2015 08:58:46 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: hpa@zytor.com, sameo@linux.intel.com, jiang.liu@linux.intel.com, Julia.Lawall@lip6.fr, tglx@linutronix.de, lee.jones@linaro.org, mingo@kernel.org, linux-kernel@vger.kernel.org Reply-To: hpa@zytor.com, sameo@linux.intel.com, jiang.liu@linux.intel.com, Julia.Lawall@lip6.fr, tglx@linutronix.de, mingo@kernel.org, lee.jones@linaro.org, linux-kernel@vger.kernel.org In-Reply-To: <20150712225930.074652157@linutronix.de> References: <20150712225930.074652157@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] mfd/ucb1x00: Prepare ucb1x00_irq for irq argument removal Git-Commit-ID: df4900318faada00dfd2ad3e6da393509e02a5f4 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: df4900318faada00dfd2ad3e6da393509e02a5f4 Gitweb: http://git.kernel.org/tip/df4900318faada00dfd2ad3e6da393509e02a5f4 Author: Thomas Gleixner AuthorDate: Mon, 13 Jul 2015 20:44:57 +0000 Committer: Thomas Gleixner CommitDate: Mon, 27 Jul 2015 13:36:38 +0200 mfd/ucb1x00: Prepare ucb1x00_irq for irq argument removal 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: Jiang Liu Cc: Lee Jones Cc: Samuel Ortiz Cc: Julia Lawall Link: http://lkml.kernel.org/r/20150712225930.074652157@linutronix.de Signed-off-by: Thomas Gleixner --- drivers/mfd/ucb1x00-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c index 3591550..5c01e24 100644 --- a/drivers/mfd/ucb1x00-core.c +++ b/drivers/mfd/ucb1x00-core.c @@ -282,7 +282,7 @@ void ucb1x00_adc_disable(struct ucb1x00 *ucb) * 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, struct irq_desc *desc) 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);