From patchwork Thu Jul 13 09:12:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 9838063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C729D60393 for ; Thu, 13 Jul 2017 09:13:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B592A2868C for ; Thu, 13 Jul 2017 09:13:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A793D286A0; Thu, 13 Jul 2017 09:13:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0DF0E2868C for ; Thu, 13 Jul 2017 09:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=9vZxapmvQLW+vUqiIY1dbqWnL0B2QbXly12zVmGBTXQ=; b=rPzzN1FLqg14MfUnkhYAoTD+My kD3x8cbnlH0l76c6HDwj5BDxoQssYhhPmKqtknJnYCZeoR4+/PCIKQ/xw3TWHFmtKk7iyvUxsDUFy Ldp6oyaT/KkaUzpHTUyxlxRl3TtSga6oiUSD/IrEM/ZZuoH7HBayUR+IeMPv8W+pqLAJGc0Tx6oMC gnipojlgUifFhBTvgCk9SqpNmGBju1sXYatpOnohd9/CVq2R9+ReFka64EdhOzJreFESf1iowfzaw 6MbqY/2gDg0YCz294i59Fe+cZjkH/4Oqker51pjW0qOlMUSKWIFBz9t9T5UXa/t8lnEucanDzfbpQ 09yLzmeg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dVaBY-0001bN-C9; Thu, 13 Jul 2017 09:13:24 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dVaBH-0001NM-Qd for linux-arm-kernel@lists.infradead.org; Thu, 13 Jul 2017 09:13:09 +0000 Received: by mail-wm0-x242.google.com with SMTP id p204so3750963wmg.1 for ; Thu, 13 Jul 2017 02:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=z4MXfEmdZqjWFxARtrOAZExjq/MgmaWTkmpM3n1gzJA=; b=R57xQcQLaXHxbVJBjYfL/TfW3BgghprBjTYSspB5rV9VwUbW+nKAL/FYH1VQ/I8uP2 pz59eaaDea+isFeCta1BeLQGs0RJa4DZfawdBa+cT++jyE/FpaNAO5ho+N9kgA+LqmCK /Rh3Pvy/vVi6HsYbE/Z3R7x8BQOB3yM/kDJTviVxialfahKeYV/F42NJBXMD32aJJdyg 4Ml5M4ROEFi3Rlhii3sAopcO2LuN54nM5WcwfHWh7ypImCVh+weEDPcsP7QCbYaO27FY Rav+iyEgNzqTi8YjvNcNtSsvp4pwXAV6LELST3P/z958flQT06KdrhnMg8YlykrpTSKT 2DJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=z4MXfEmdZqjWFxARtrOAZExjq/MgmaWTkmpM3n1gzJA=; b=mcF1k1kqECoTjADYcsiUpJQ5NDmLO3Tp2Oqaw/MECOKDSEfW9M4zTB12ZaZsVwaTs2 ddOftzHW2QqeC0tocuR4Vyw34BOtxf72gMjIdxsrTnZSuoaTgM4eCSrsOU6oDSmu0ipv QbRyIXq9i1Kh62FHxCvB73mPIAZA7muoT2aSIx93Bf9wgnT7Uk/1zws0057jDiYouocf ywgYFoNyVMgBPBzTy5KQNpDI+lwRFwwnsRkWVZvW3Sj5j0QYf2L5U2KEUiTbZNFMn4go /8VCTexmPdTz6gUSxAG1Aaeir9vHDN5QXga/zUwVB6phQxvimuz5fXwleo7MvZprQKDp NIFg== X-Gm-Message-State: AIVw111QDjsE6xigNwmMyq2+VinvXhd1idy9XvUlIJ35pAIaGtM6lFnU fdK9yND70kQRbk+N X-Received: by 10.28.84.66 with SMTP id p2mr1299254wmi.24.1499937165999; Thu, 13 Jul 2017 02:12:45 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id t125sm5006738wmt.20.2017.07.13.02.12.45 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 13 Jul 2017 02:12:45 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Subject: [PATCH 2/2] pinctrl: zynq: Fix warnings in the driver Date: Thu, 13 Jul 2017 11:12:43 +0200 Message-Id: <4ec0134906b80ac107dfc80fbf7beb10e38e47cb.1499937148.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <4c6e1f9b0635682518d2ffa50cf611efef4aff68.1499937148.git.michal.simek@xilinx.com> References: <4c6e1f9b0635682518d2ffa50cf611efef4aff68.1499937148.git.michal.simek@xilinx.com> In-Reply-To: <4c6e1f9b0635682518d2ffa50cf611efef4aff68.1499937148.git.michal.simek@xilinx.com> References: <4c6e1f9b0635682518d2ffa50cf611efef4aff68.1499937148.git.michal.simek@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170713_021308_013551_EBD4BDDE X-CRM114-Status: GOOD ( 12.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Josh Cartwright , Peter Crosthwaite , Nava kishore Manne , Linus Walleij , linux-gpio@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Steffen Trumtrar , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Nava kishore Manne This patch fixes the below warning --> Prefer 'unsigned int' to bare use of 'unsigned'. --> line over 80 characters. --> Prefer 'unsigned int **' to bare use of 'unsigned **'. Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek --- drivers/pinctrl/pinctrl-zynq.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/pinctrl/pinctrl-zynq.c b/drivers/pinctrl/pinctrl-zynq.c index 7565651acdc6..a0daf27042bd 100644 --- a/drivers/pinctrl/pinctrl-zynq.c +++ b/drivers/pinctrl/pinctrl-zynq.c @@ -62,7 +62,7 @@ struct zynq_pinctrl { struct zynq_pctrl_group { const char *name; const unsigned int *pins; - const unsigned npins; + const unsigned int npins; }; /** @@ -841,7 +841,7 @@ static int zynq_pctrl_get_groups_count(struct pinctrl_dev *pctldev) } static const char *zynq_pctrl_get_group_name(struct pinctrl_dev *pctldev, - unsigned selector) + unsigned int selector) { struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); @@ -849,9 +849,9 @@ static const char *zynq_pctrl_get_group_name(struct pinctrl_dev *pctldev, } static int zynq_pctrl_get_group_pins(struct pinctrl_dev *pctldev, - unsigned selector, - const unsigned **pins, - unsigned *num_pins) + unsigned int selector, + const unsigned int **pins, + unsigned int *num_pins) { struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); @@ -878,7 +878,7 @@ static int zynq_pmux_get_functions_count(struct pinctrl_dev *pctldev) } static const char *zynq_pmux_get_function_name(struct pinctrl_dev *pctldev, - unsigned selector) + unsigned int selector) { struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); @@ -886,7 +886,7 @@ static const char *zynq_pmux_get_function_name(struct pinctrl_dev *pctldev, } static int zynq_pmux_get_function_groups(struct pinctrl_dev *pctldev, - unsigned selector, + unsigned int selector, const char * const **groups, unsigned * const num_groups) { @@ -898,8 +898,8 @@ static int zynq_pmux_get_function_groups(struct pinctrl_dev *pctldev, } static int zynq_pinmux_set_mux(struct pinctrl_dev *pctldev, - unsigned function, - unsigned group) + unsigned int function, + unsigned int group) { int i, ret; struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); @@ -986,8 +986,8 @@ enum zynq_pin_config_param { }; #ifdef CONFIG_DEBUG_FS -static const struct pin_config_item zynq_conf_items[ARRAY_SIZE(zynq_dt_params)] = { - PCONFDUMP(PIN_CONFIG_IOSTANDARD, "IO-standard", NULL, true), +static const struct pin_config_item zynq_conf_items[ARRAY_SIZE(zynq_dt_params)] + = { PCONFDUMP(PIN_CONFIG_IOSTANDARD, "IO-standard", NULL, true), }; #endif @@ -997,7 +997,7 @@ static unsigned int zynq_pinconf_iostd_get(u32 reg) } static int zynq_pinconf_cfg_get(struct pinctrl_dev *pctldev, - unsigned pin, + unsigned int pin, unsigned long *config) { u32 reg; @@ -1054,9 +1054,9 @@ static int zynq_pinconf_cfg_get(struct pinctrl_dev *pctldev, } static int zynq_pinconf_cfg_set(struct pinctrl_dev *pctldev, - unsigned pin, + unsigned int pin, unsigned long *configs, - unsigned num_configs) + unsigned int num_configs) { int i, ret; u32 reg; @@ -1130,9 +1130,9 @@ static int zynq_pinconf_cfg_set(struct pinctrl_dev *pctldev, } static int zynq_pinconf_group_set(struct pinctrl_dev *pctldev, - unsigned selector, + unsigned int selector, unsigned long *configs, - unsigned num_configs) + unsigned int num_configs) { int i, ret; struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev);