From patchwork Fri Aug 4 04:01:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 109365 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1640822qge; Thu, 3 Aug 2017 21:04:36 -0700 (PDT) X-Received: by 10.84.225.6 with SMTP id t6mr1123339plj.231.1501819476210; Thu, 03 Aug 2017 21:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501819476; cv=none; d=google.com; s=arc-20160816; b=Pu4l/Ju/bDi+WvwXxBSyFrLU7bvBmvfkuqfMRMNIgGG9n2leUPwECqLdQjv2rMGFtF i/qNSEqFI7+AflNIlO4EzzouhBUMaiBZ27kXzvj6MlYxXKlJZLTYZzClKq6SoB9t0EN1 vFFCpenvVV+QGV7VAUxsnq+hC+p9asCJ4y7BcNmgq9u08725pga7tqHdqAqmgxgqi3ii xNhO2xaS33MhlK4LBweKNJLqAn67msvgpvG0Jq9Z95QyW7u6VYBrwdm8uCrR87FrzCVC slVMLzl7R/FN+LsQ7O/gjDqjoKNcQh2Gh9iAM/BBvGHFVSiNJzEO8dwbJHKEfNK39qSa fhVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=qO8q1zYnbH9Urv9hbuB4JtjdnXE8Lfa0livUpWK9KYM=; b=lb8avlhkf9EA4LMwEvVfDo/1nyYPBS8O+F2X3LYPHDapizYpGGHcGvxx4/6QHVRjW0 ttBl9yFPohTDomRkv+HEzK/DTV/+sQQHMYdjQ6wlqL2Lovlhfs4lzM9lt60dUz37sIRH PtGVoylOfOuUwNsZq+abpuHIGFmI2nua1XIb0DrQVFWWugq3PUaOBk2xrBzYWZxuTkfV ccwZORfMronPrYmdaJw0+eSXLj+dPx/QUFi+2SnJjxuA8vz6m2r7jLeufhjoaKyAxjEO zeaFtRv75jg/XiCXhxxvaR+M1NywTWa/qevmgwCtdYH+7PGVx7YHwjVQo7WEigmlzx3m BU7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.b=DZUBluEM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 z127si359469pgb.802.2017.08.03.21.04.35; Thu, 03 Aug 2017 21:04:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.b=DZUBluEM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751288AbdHDECy (ORCPT + 25 others); Fri, 4 Aug 2017 00:02:54 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:39008 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbdHDECc (ORCPT ); Fri, 4 Aug 2017 00:02:32 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v7441RXs010638; Fri, 4 Aug 2017 13:01:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v7441RXs010638 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1501819288; bh=qO8q1zYnbH9Urv9hbuB4JtjdnXE8Lfa0livUpWK9KYM=; h=From:To:Cc:Subject:Date:From; b=DZUBluEMxgdqgB8lUGF8AI4W3T/HRg5PeCuUfaaPflpMJz5RSmMebl5JQVH1CxE3a mj77avrZFOmle8xpB6CdsZU/WLoiEBvXGZni5GQvLcJIRCcGH5isX1WCsYy+fae+Z8 ++4DL2aOfruw92aNS7aLxJ1CgkEMA0zWezHB0iyZ4/lGooGhh+p11y/iFBqtkL5yVu YKTxLsr0vL73hwxZjlUYK5qgGI1xzWkfb54ltmeqv4xc1hCyDt6TtL8H5NCxIs+LBZ XyTVXkwFJ/FYGTl8hhOB2IAYHpnB++JdJloaiv3zJ9kWGSLV62IpGNGk+nTUVTv1na uWfuQk4MCu2Ow== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-gpio@vger.kernel.org Cc: Masahiro Yamada , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: uniphier: widen all pinconf-derived arguments to u32 Date: Fri, 4 Aug 2017 13:01:25 +0900 Message-Id: <1501819285-12827-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 58957d2edfa1 ("pinctrl: Widen the generic pinconf argument from 16 to 24 bits"), the generic pinconf arguments are handled by u32. UniPhier pinctrl drivers do not support debouncing, so u16 is working, but align the argument type to u32 for consistency. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c index 5d8c9efd8135..f9267fabe6b0 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c @@ -198,7 +198,7 @@ static int uniphier_conf_pin_bias_get(struct pinctrl_dev *pctldev, } static int uniphier_conf_pin_drive_get(struct pinctrl_dev *pctldev, - unsigned int pin, u16 *strength) + unsigned int pin, u32 *strength) { struct uniphier_pinctrl_priv *priv = pinctrl_dev_get_drvdata(pctldev); const struct pin_desc *desc = pin_desc_get(pctldev, pin); @@ -289,7 +289,7 @@ static int uniphier_conf_pin_config_get(struct pinctrl_dev *pctldev, { enum pin_config_param param = pinconf_to_config_param(*configs); bool has_arg = false; - u16 arg; + u32 arg; int ret; switch (param) { @@ -393,7 +393,7 @@ static int uniphier_conf_pin_bias_set(struct pinctrl_dev *pctldev, } static int uniphier_conf_pin_drive_set(struct pinctrl_dev *pctldev, - unsigned int pin, u16 strength) + unsigned int pin, u32 strength) { struct uniphier_pinctrl_priv *priv = pinctrl_dev_get_drvdata(pctldev); const struct pin_desc *desc = pin_desc_get(pctldev, pin); @@ -454,7 +454,7 @@ static int uniphier_conf_pin_drive_set(struct pinctrl_dev *pctldev, } static int uniphier_conf_pin_input_enable(struct pinctrl_dev *pctldev, - unsigned int pin, u16 enable) + unsigned int pin, u32 enable) { struct uniphier_pinctrl_priv *priv = pinctrl_dev_get_drvdata(pctldev); const struct pin_desc *desc = pin_desc_get(pctldev, pin);