From patchwork Thu Aug 9 15:53:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1302451 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 96883DFF7B for ; Thu, 9 Aug 2012 17:52:26 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SzVBA-0003ZI-Ta; Thu, 09 Aug 2012 16:01:47 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SzV3v-0006Bd-RN for linux-arm-kernel@lists.infradead.org; Thu, 09 Aug 2012 15:54:21 +0000 Received: by wibhm11 with SMTP id hm11so379128wib.0 for ; Thu, 09 Aug 2012 08:54:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=P4jFRsokXtrhjufD/ohS6wa5W9CluIS5Hf/lY+71SoQ=; b=YY8GGGdtUJsZWAewy1Q5TNcmSmLGaQstkYxCT1fLsGT/NmnI+hYdYXk3p0kfbEY9DK K0Dd1lTLEHHuaVAhNJoRuYcgz7CXdzH7hLnWTZ9UKw3PM4lusE7ha5XVxFWOtQUeBivG tmQs8LJ5G5FSzm6TgJufumUvKrkIJbAqvHiAW4zabdiPxGQVaek2GWIPNGrWs4kTw9U+ 0acAbYBweLAbsnM3gsrdP7Yw/m9y0CdVIBqmYwnIM5s8LyKvtJD59pn8L0NChVvjTlVM qlimUsG44WjqHDauToI0n2fXXBXX5aUGQqhOU4Hq46NvTMADqGzgjRSuwDg7c0Qk0mgU FLZA== Received: by 10.180.78.99 with SMTP id a3mr3959482wix.15.1344527654315; Thu, 09 Aug 2012 08:54:14 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id cl8sm2302659wib.10.2012.08.09.08.54.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 08:54:13 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] input: ab8500-ponkey: Rely on MFD core to convert IRQs to virtual Date: Thu, 9 Aug 2012 16:53:55 +0100 Message-Id: <1344527635-6163-9-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1344527635-6163-1-git-send-email-lee.jones@linaro.org> References: <1344527635-6163-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlA+Z08v43WH75zr3k42auLj5igsiEBiR+xfXxhfaPfPETqSMKSH60hXSdVGvEA9pnvgvru X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Dmitry Torokhov , linus.walleij@stericsson.com, arnd@arndb.de, broonie@opensource.wolfsonmicro.com, linux-input@vger.kernel.org, STEricsson_nomadik_linux@list.st.com, Lee Jones X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org There was a plan to place ab8500_irq_get_virq() calls in each AB8500 child device prior to requesting an IRQ, but as we're no longer using Device Tree to collect our IRQ numbers, it's actually better to allow the core to do this during device registration time. So the IRQ number we pull from its resource has already been converted to a virtual IRQ. CC: Dmitry Torokhov CC: linux-input@vger.kernel.org Signed-off-by: Lee Jones Acked-by: Linus Walleij --- drivers/input/misc/ab8500-ponkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index f06231b..84ec691 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -74,8 +74,8 @@ static int __devinit ab8500_ponkey_probe(struct platform_device *pdev) ponkey->idev = input; ponkey->ab8500 = ab8500; - ponkey->irq_dbf = ab8500_irq_get_virq(ab8500, irq_dbf); - ponkey->irq_dbr = ab8500_irq_get_virq(ab8500, irq_dbr); + ponkey->irq_dbf = irq_dbf; + ponkey->irq_dbr = irq_dbr; input->name = "AB8500 POn(PowerOn) Key"; input->dev.parent = &pdev->dev;