From patchwork Tue Dec 5 14:46:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 120656 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5836535qgn; Tue, 5 Dec 2017 06:48:38 -0800 (PST) X-Google-Smtp-Source: AGs4zMbJgXuDvbS42YLffESw+5NmXaW3T9Rjn2cU8VUj5zMrWf/5j73u3Sk7s1lRhjNFTF6vpKz8 X-Received: by 10.98.41.197 with SMTP id p188mr23484696pfp.9.1512485318778; Tue, 05 Dec 2017 06:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512485318; cv=none; d=google.com; s=arc-20160816; b=Zc+965sjOarXa0846nHayXIpEKU8eVQr7yYUPLxt2y/O8keGiBEh5c8MpYSr+aATMx ICI3ymw8uryxUzAkKlv3fxrNR0H0HdDg5/aqqRvsGbpKfLqMhM1nqswr3cB7ztaBJmjU eQf83geayPkkCoS8nN6SmmttqsV6YgXeF97L6ywUawP/ifVO6EfXlsEw+v07Yp3I0gXn ssDNeesJyFlirtVacEn8ThiAqGk2svreoaHjohRPNHlItutgOks5Ti4/4FXkqP+k2Fy0 Rz9svUh6rMxeTLZBPQBHCBzHicC1lBoWOUO8md4ehxxOipvymAxPBm3oe1GFdOfhuxSW eZRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=mWnUMrSEGz91o4cX4dK5A+GMA7/s5ynYugLQ5Dx1LQM=; b=JFoVccdFqSchri2bBkdNZ90izd4I5UX3rHUyWnH1Q8Iy8Ebnr4MKgHERHfHhZvalt+ 2zsPvuYu1WPZ6sdLM2g/s7wgnCZix0FJtGAWH2J/Sb0OeG4KmsrZ8ZvIB88MZ++ec88S C9WJWrERUTbYOb82NOHjSLLHkLo1ElVvtGy/MAHq88VMCZij3NEjjGpqFUSFzp6X4LKu dM94AfPLb4WBkg8pMcM4Lh90SCtzHCCxSqPZoAjyJw/JeJyLksruPoa58xRXJTPE3gxi iiQ+pMa+wR7QpFwYs6tlHqYXTPuGatOf2pif6xdgQxpgpbvfDhaymsAI1IQzg9Hq7wxd jTMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si198459pfl.112.2017.12.05.06.48.38; Tue, 05 Dec 2017 06:48:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752687AbdLEOsg (ORCPT + 6 others); Tue, 5 Dec 2017 09:48:36 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:54769 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbdLEOsf (ORCPT ); Tue, 5 Dec 2017 09:48:35 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 98CBC20741; Tue, 5 Dec 2017 15:48:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 45333206F1; Tue, 5 Dec 2017 15:48:33 +0100 (CET) From: Quentin Schulz To: linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, lee.jones@linaro.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, thomas.petazzoni@free-electrons.com, linux-sunxi@googlegroups.com, Quentin Schulz Subject: [PATCH v5 1/9] gpio: axp209: switch unsigned variables to unsigned int Date: Tue, 5 Dec 2017 15:46:39 +0100 Message-Id: <20171205144647.17594-2-quentin.schulz@free-electrons.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171205144647.17594-1-quentin.schulz@free-electrons.com> References: <20171205144647.17594-1-quentin.schulz@free-electrons.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Checkpatch complains with the following message: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Let's make it happy by switching over to unsigned int. Signed-off-by: Quentin Schulz --- drivers/gpio/gpio-axp209.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-axp209.c b/drivers/gpio/gpio-axp209.c index 4a346b7b4172..6ee7dc1418fa 100644 --- a/drivers/gpio/gpio-axp209.c +++ b/drivers/gpio/gpio-axp209.c @@ -32,7 +32,7 @@ struct axp20x_gpio { struct regmap *regmap; }; -static int axp20x_gpio_get_reg(unsigned offset) +static int axp20x_gpio_get_reg(unsigned int offset) { switch (offset) { case 0: @@ -46,7 +46,7 @@ static int axp20x_gpio_get_reg(unsigned offset) return -EINVAL; } -static int axp20x_gpio_input(struct gpio_chip *chip, unsigned offset) +static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset) { struct axp20x_gpio *gpio = gpiochip_get_data(chip); int reg; @@ -60,7 +60,7 @@ static int axp20x_gpio_input(struct gpio_chip *chip, unsigned offset) AXP20X_GPIO_FUNCTION_INPUT); } -static int axp20x_gpio_get(struct gpio_chip *chip, unsigned offset) +static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset) { struct axp20x_gpio *gpio = gpiochip_get_data(chip); unsigned int val; @@ -73,7 +73,8 @@ static int axp20x_gpio_get(struct gpio_chip *chip, unsigned offset) return !!(val & BIT(offset + 4)); } -static int axp20x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) +static int axp20x_gpio_get_direction(struct gpio_chip *chip, + unsigned int offset) { struct axp20x_gpio *gpio = gpiochip_get_data(chip); unsigned int val; @@ -102,7 +103,7 @@ static int axp20x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) return val & 2; } -static int axp20x_gpio_output(struct gpio_chip *chip, unsigned offset, +static int axp20x_gpio_output(struct gpio_chip *chip, unsigned int offset, int value) { struct axp20x_gpio *gpio = gpiochip_get_data(chip); @@ -118,7 +119,7 @@ static int axp20x_gpio_output(struct gpio_chip *chip, unsigned offset, : AXP20X_GPIO_FUNCTION_OUT_LOW); } -static void axp20x_gpio_set(struct gpio_chip *chip, unsigned offset, +static void axp20x_gpio_set(struct gpio_chip *chip, unsigned int offset, int value) { axp20x_gpio_output(chip, offset, value);