From patchwork Tue Jan 28 01:32:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 23774 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EF2D520300 for ; Tue, 28 Jan 2014 01:32:27 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf27315546oag.5 for ; Mon, 27 Jan 2014 17:32:26 -0800 (PST) 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; bh=oSpQECDSWuUGA1tMYJdkM81TDQMdPr9xbBmjSfU/2OM=; b=bDhdunasQEhf3eNssSjL43yAlKvghyDpXnPO0cpPU9wBzf8iQ8zTOoA/l9WwZ/USs5 hsuW1kxUg0bSshqXnmRDtto6l7gTJnIQgOVhJOireANoG23I2MD8Cpk0Sz8eILJC2X4A /JD+unoC65MRInGXrdmhwYXzEK96iUvHUszz45Kfutvm373DHCKMlCkejBbW4oaBpMNe u99SwT6m8BQTHFfM0oEmKpcC03DXVabmnDJne2cIOJLlzsM5+gHIVa3Pz318po93vlq/ Qiu5iN0kZPGUqP8KCGlCF5z8bRg7P0dpHGyyNwFGJX8+92EKorStY952fNV8pODU4914 83pQ== X-Gm-Message-State: ALoCoQlAQNacQoWyVFAR8gKNr2nxM1gSUUGBCfXDMT/VjB50YKUYAOUIW/GSOXigeaC996HVn+V/ X-Received: by 10.182.24.5 with SMTP id q5mr11804293obf.23.1390872746698; Mon, 27 Jan 2014 17:32:26 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.33.200 with SMTP id j66ls1735695qgj.80.gmail; Mon, 27 Jan 2014 17:32:26 -0800 (PST) X-Received: by 10.58.181.71 with SMTP id du7mr2424674vec.25.1390872746601; Mon, 27 Jan 2014 17:32:26 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id ef6si5838550ved.47.2014.01.27.17.32.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 17:32:26 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id la4so3949598vcb.35 for ; Mon, 27 Jan 2014 17:32:26 -0800 (PST) X-Received: by 10.58.229.164 with SMTP id sr4mr18018410vec.18.1390872746525; Mon, 27 Jan 2014 17:32:26 -0800 (PST) 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 u4csp173630vcz; Mon, 27 Jan 2014 17:32:26 -0800 (PST) X-Received: by 10.140.43.3 with SMTP id d3mr44626095qga.70.1390872746017; Mon, 27 Jan 2014 17:32:26 -0800 (PST) Received: from mail-gw2-out.broadcom.com (mail-gw2-out.broadcom.com. [216.31.210.63]) by mx.google.com with ESMTP id t7si4551484qav.100.2014.01.27.17.32.25 for ; Mon, 27 Jan 2014 17:32:26 -0800 (PST) Received-SPF: neutral (google.com: 216.31.210.63 is neither permitted nor denied by best guess record for domain of markus.mayer@linaro.org) client-ip=216.31.210.63; X-IronPort-AV: E=Sophos;i="4.95,732,1384329600"; d="scan'208";a="11614567" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 27 Jan 2014 17:44:28 -0800 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.1.438.0; Mon, 27 Jan 2014 17:32:24 -0800 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.1.438.0; Mon, 27 Jan 2014 17:32:24 -0800 Received: from mail.broadcom.com (lbrmn-lnxub70.ric.broadcom.com [10.136.8.215]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 44E4D246A4; Mon, 27 Jan 2014 17:32:23 -0800 (PST) From: Markus Mayer To: Linus Walleij , Alexandre Courbot CC: Linaro Patches , Linux GPIO List , Linux Kernel Mailing List , Tim Kryger , Markus Mayer Subject: [PATCH] gpio: bcm281xx: Use "unsigned gpio" consistently throughout the code Date: Mon, 27 Jan 2014 17:32:18 -0800 Message-ID: <1390872738-822-1-git-send-email-markus.mayer@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: markus.mayer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 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: , This patch removes some inconsistencies caused by the use of "int gpio" in some parts of the code and "unsigned gpio" in others. Signed-off-by: Markus Mayer Reviewed-by: Tim Kryger --- drivers/gpio/gpio-bcm-kona.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c index e5aa4d0..b4f20f7 100644 --- a/drivers/gpio/gpio-bcm-kona.c +++ b/drivers/gpio/gpio-bcm-kona.c @@ -323,7 +323,7 @@ static void bcm_kona_gpio_irq_ack(struct irq_data *d) { struct bcm_kona_gpio *kona_gpio; void __iomem *reg_base; - int gpio = d->hwirq; + unsigned gpio = d->hwirq; int bank_id = GPIO_BANK(gpio); int bit = GPIO_BIT(gpio); u32 val; @@ -344,7 +344,7 @@ static void bcm_kona_gpio_irq_mask(struct irq_data *d) { struct bcm_kona_gpio *kona_gpio; void __iomem *reg_base; - int gpio = d->hwirq; + unsigned gpio = d->hwirq; int bank_id = GPIO_BANK(gpio); int bit = GPIO_BIT(gpio); u32 val; @@ -365,7 +365,7 @@ static void bcm_kona_gpio_irq_unmask(struct irq_data *d) { struct bcm_kona_gpio *kona_gpio; void __iomem *reg_base; - int gpio = d->hwirq; + unsigned gpio = d->hwirq; int bank_id = GPIO_BANK(gpio); int bit = GPIO_BIT(gpio); u32 val; @@ -386,7 +386,7 @@ static int bcm_kona_gpio_irq_set_type(struct irq_data *d, unsigned int type) { struct bcm_kona_gpio *kona_gpio; void __iomem *reg_base; - int gpio = d->hwirq; + unsigned gpio = d->hwirq; u32 lvl_type; u32 val; unsigned long flags;