From patchwork Fri Oct 11 17:39:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 20981 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B9CD825EA1 for ; Fri, 11 Oct 2013 17:39:26 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id x20sf7888276qcv.7 for ; Fri, 11 Oct 2013 10:39:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type:content-transfer-encoding; bh=Puh+JtLwP8lrIQNTOfl0E29WF3YGQ0Pma8dvIjv5yGE=; b=k2gICjgFfd+xUOYQtWMXObpoiDMxLs4WFzNj5Ggi8xqIScbRS3CXW6ZQ+YExf+Z6gl b2zDscfjCOAyyK8HWE2iETaAAfitMjh1TFCNHbC5Am7ha+xux7RmLL6m4rBzNjcG5myO mhIoq5q2ZF7CP/4QIqcx2+hvpr/d5TyD9lMDzSUw2c7/k1W1/S7GqKJcVn6sfbRUK4Io OoL+5GiQPPiYggV6GLrSJdRVuARp7zcOsZIj9uv6lf6Iwk95bGEV3EGZwSS7zHSB+UjT ARzvGQMJAavFoZikV6NQ8umUOfVRYdDi7rE0xJNK1TPnTyjiXxsoss58f7tvvyO7dniV wF0Q== X-Received: by 10.236.147.18 with SMTP id s18mr20607358yhj.28.1381513166137; Fri, 11 Oct 2013 10:39:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.84 with SMTP id gc20ls1382115qeb.96.gmail; Fri, 11 Oct 2013 10:39:26 -0700 (PDT) X-Received: by 10.52.24.48 with SMTP id r16mr27658vdf.59.1381513166000; Fri, 11 Oct 2013 10:39:26 -0700 (PDT) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id gq10si17055706vdc.17.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Oct 2013 10:39:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.46; Received: by mail-vb0-f46.google.com with SMTP id p13so2998049vbe.19 for ; Fri, 11 Oct 2013 10:39:25 -0700 (PDT) X-Gm-Message-State: ALoCoQkX7AAc+8fNec222RurUvhURIB2EbHOfOaMHLHOq8gb81Nm3TlbyhZAoOd3iM1tL8LQ49EA X-Received: by 10.52.178.38 with SMTP id cv6mr24357vdc.61.1381513165911; Fri, 11 Oct 2013 10:39:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp57836vcz; Fri, 11 Oct 2013 10:39:25 -0700 (PDT) X-Received: by 10.180.187.175 with SMTP id ft15mr4258918wic.20.1381513165001; Fri, 11 Oct 2013 10:39:25 -0700 (PDT) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx.google.com with ESMTPS id wj1si21175441wjb.46.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Oct 2013 10:39:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=209.85.212.177; Received: by mail-wi0-f177.google.com with SMTP id hq15so1441173wib.16 for ; Fri, 11 Oct 2013 10:39:24 -0700 (PDT) X-Received: by 10.180.104.34 with SMTP id gb2mr4208027wib.3.1381513164353; Fri, 11 Oct 2013 10:39:24 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id k4sm7695234wic.0.2013.10.11.10.39.22 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 11 Oct 2013 10:39:23 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Linus Walleij , Anatolij Gustschin , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH] gpio: mpc8xxx: drop references to "virtual" IRQ Date: Fri, 11 Oct 2013 19:39:15 +0200 Message-Id: <1381513155-7588-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Rename the argument "virq" to just "irq", this IRQ isn't any more "virtual" than any other Linux IRQ number, we use "hwirq" for the actual hw-numbers, "virq" is just bogus. Cc: Anatolij Gustschin Cc: Uwe Kleine-König Signed-off-by: Linus Walleij --- drivers/gpio/gpio-mpc8xxx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index a0b33a2..b350649 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -282,16 +282,16 @@ static struct irq_chip mpc8xxx_irq_chip = { .irq_set_type = mpc8xxx_irq_set_type, }; -static int mpc8xxx_gpio_irq_map(struct irq_domain *h, unsigned int virq, - irq_hw_number_t hw) +static int mpc8xxx_gpio_irq_map(struct irq_domain *h, unsigned int irq, + irq_hw_number_t hwirq) { struct mpc8xxx_gpio_chip *mpc8xxx_gc = h->host_data; if (mpc8xxx_gc->of_dev_id_data) mpc8xxx_irq_chip.irq_set_type = mpc8xxx_gc->of_dev_id_data; - irq_set_chip_data(virq, h->host_data); - irq_set_chip_and_handler(virq, &mpc8xxx_irq_chip, handle_level_irq); + irq_set_chip_data(irq, h->host_data); + irq_set_chip_and_handler(irq, &mpc8xxx_irq_chip, handle_level_irq); return 0; }