From patchwork Tue Nov 14 12:55:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 743772 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2151509wrw; Tue, 14 Nov 2023 04:56:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiS9bzigajSOdcfTc2u9I350uQa1sb2tdyVjk+pPwEQxdhSAlx4Ww2nriB2xf5EqOtZZyO X-Received: by 2002:a17:906:13c2:b0:9bd:bbc1:1c65 with SMTP id g2-20020a17090613c200b009bdbbc11c65mr7157343ejc.13.1699966588704; Tue, 14 Nov 2023 04:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699966588; cv=none; d=google.com; s=arc-20160816; b=IRRjPciMF01ChsQvvbIxHTzbyKvTt3wm9fBuIwfYFKOPWd6MmWsT8DYRvSW555rZ4e Y2JNzXyIT4ncjERRwtCoM7/VPC+7IGyyUjRIElvcfjfC3oEMzXqTpnFKMXXpdyfUsPgJ VLzUgl+WaCXzGEi5CUf/1pCX02ZR0olEkgiarZwCnMrU5l1MmyAAUumHdxuB85OEUW5l 0gNxNFFkYClrA4X/UCuzs7yyQSFGAgdP34RJHZWO4YXqB4S5EaPQb4W48Y0ppQEOeYwF gdizy4Up7IG8A0ylLxprsyfQC54BYG+But7iyiWQatkRjLhwr61L0kW9Npe7wxBBLhcF xv8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Q2lR41nHEyYrh4p79N6aA5ND1RAY/v6z4jiJdgAmdyw=; fh=GowdQhFHojjDa0VFAVprx0l6qpleMCeMha4WUJGY9kk=; b=1Fiiqlywx7VrnWU5/UK2JD2vqqc8ZUHlCKxKOhr+aUx/hwuTIVxEDAlFAK/IsBjTTc C8ilviatZxCOzK2uAkr1pDL7hsmhZF6D4fPJ+FYo9w2gpFKS7iGDlpyT77sygz0HXaEA 8nDx8isNS6IH4Jw+Yfh3J5+gMWZ+rPmnu+RcfesbmBrSj3wOaj9X4y26mdnRzAfK/pFd O8V7Y+DDh8fOVWpHDP0aNquxNLYJn14rlEnkhoiIJja2DsuiNpk6eqYIAG1pt9Gnn4eC miheZYb5EAeEjqZKQPojTcct7smFtHxLs6r3QrOpRDws6D1FlRYPK+NIKXMghwpLpINI IHTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIcOY+YN; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id nb33-20020a1709071ca100b009c4c3e43428si4319115ejc.594.2023.11.14.04.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 04:56:28 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIcOY+YN; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EB03F87455; Tue, 14 Nov 2023 13:55:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="dIcOY+YN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BBAEA8746E; Tue, 14 Nov 2023 13:55:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 72C5D87455 for ; Tue, 14 Nov 2023 13:55:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-32dff08bbdbso3837339f8f.2 for ; Tue, 14 Nov 2023 04:55:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699966549; x=1700571349; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Q2lR41nHEyYrh4p79N6aA5ND1RAY/v6z4jiJdgAmdyw=; b=dIcOY+YN5OfUpn6gf+Deiw0B9Pf/alQKvWDleL80/5LpHL0TMHO4bTALqI3fGU/Ju4 7wYHNMrsiYntOOZeP0seqLaJmqT0t+XseGR2RPEKg//yyEf00Wy4QB/Qpf6ZBOg/nU+w TVu3tA4ypDZe0VP+5UyZ/yh9Cp44O8BWQ5Hy4rpk98OsocsB3Qrpvh8YIkpRJ8QpQKAh ZVPJzuA9eRHfHjNJfBtC8a47eKCQnLlR9JypAOF14Fos7zbU62U8SCSaR9QL2somYiDc BSEUZD6YEL7Dg7C50njNIYKecIqXyYtneI3AEnp+5ZPnbH16Q3bmJfM72GkZh8DDy4uU gutA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699966549; x=1700571349; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q2lR41nHEyYrh4p79N6aA5ND1RAY/v6z4jiJdgAmdyw=; b=JXmP03tl0knG4fiej7RINCp1zGDlrvV6zHriazPSn+moArLE3ctJnYCB+ktEDkrP8p 72x9jw2OcZJL5J78/g1c41gza33D5Y9VIEI64YQ+tTf7slgjUD3iAcZmUrtnFDIoMVJx fqYK/TOu47LTycPG9PEootA+JZS0QN2sH4Wnc/hw+FS24tgnEPvRDwP4anzjKxsp7qwP SWexy+de0BmVjs0A/G3VXBJk3sscCa2AhFoAlitem/qO76pProswOKvd92Ouk6j2HBGv BDmxtg1WpphOkFKKgiMZd0IAPpeHEbiCMKYVc24JSIQ+EXESc/F7OVMgQ+Pa8SYPNHLP H53w== X-Gm-Message-State: AOJu0YzI1/wcb7PbATbEMQIyb/m97+PH+2wtzXbw302OeQH6FgoPW3/A 2OhzDDYyPzmcFqYN+EcxRv74kTtLdrCYF58ChE+zTA== X-Received: by 2002:adf:f28e:0:b0:32d:9d99:94e7 with SMTP id k14-20020adff28e000000b0032d9d9994e7mr6927653wro.49.1699966549716; Tue, 14 Nov 2023 04:55:49 -0800 (PST) Received: from lion.localdomain ([79.79.179.141]) by smtp.gmail.com with ESMTPSA id o11-20020adfcf0b000000b0032d9f32b96csm7748569wrj.62.2023.11.14.04.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 04:55:48 -0800 (PST) From: Caleb Connolly Date: Tue, 14 Nov 2023 12:55:43 +0000 Subject: [PATCH v3 4/4] msm_gpio: use unsigned int MIME-Version: 1.0 Message-Id: <20231114-b4-qcom-pinctrl-v3-4-a7121677cca4@linaro.org> References: <20231114-b4-qcom-pinctrl-v3-0-a7121677cca4@linaro.org> In-Reply-To: <20231114-b4-qcom-pinctrl-v3-0-a7121677cca4@linaro.org> To: Sumit Garg , Ramon Fried , Lukasz Majewski , Sean Anderson , Rayagonda Kokatanur , Robert Marko , Bhupesh Sharma , Luka Perkov , Dzmitry Sankouski , Jorge Ramirez-Ortiz Cc: Vladimir Zapolskiy , u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.13-dev-4bd13 X-Developer-Signature: v=1; a=openpgp-sha256; l=1720; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=X6lIUl16TsZ/Cp7pUId+SdIDlOT5igTJJeA3gzpplt0=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtTgPP8Qyx2eWZKdc8rCTgbu+6Q/LerVbCXXgNBi8ZPne 1wVs350lLIwCHIwyIopsoifWGbZtPayvcb2BRdg5rAygQxh4OIUgIlsN2Jk2KXg6ni9fMGEkgVr 7P6sak3oPh9SJCoyw8Hpz6lmv+bNOgz/vXlbGnXZObUmJyyYIV9rHrf3e9WB+zbz2D7prfy25r/ ACwA= X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Replaces the uses of "unsigned" with "unsigned int". Reviewed-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/gpio/msm_gpio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index d9355ed4430c..80cd28bb231f 100644 --- a/drivers/gpio/msm_gpio.c +++ b/drivers/gpio/msm_gpio.c @@ -46,7 +46,7 @@ static int msm_gpio_direction_input(struct udevice *dev, unsigned int gpio) return 0; } -static int msm_gpio_set_value(struct udevice *dev, unsigned gpio, int value) +static int msm_gpio_set_value(struct udevice *dev, unsigned int gpio, int value) { struct msm_gpio_bank *priv = dev_get_priv(dev); @@ -57,7 +57,7 @@ static int msm_gpio_set_value(struct udevice *dev, unsigned gpio, int value) return 0; } -static int msm_gpio_direction_output(struct udevice *dev, unsigned gpio, +static int msm_gpio_direction_output(struct udevice *dev, unsigned int gpio, int value) { struct msm_gpio_bank *priv = dev_get_priv(dev); @@ -72,14 +72,14 @@ static int msm_gpio_direction_output(struct udevice *dev, unsigned gpio, return 0; } -static int msm_gpio_get_value(struct udevice *dev, unsigned gpio) +static int msm_gpio_get_value(struct udevice *dev, unsigned int gpio) { struct msm_gpio_bank *priv = dev_get_priv(dev); return !!(readl(priv->base + GPIO_IN_OUT_REG(dev, gpio)) >> GPIO_IN); } -static int msm_gpio_get_function(struct udevice *dev, unsigned gpio) +static int msm_gpio_get_function(struct udevice *dev, unsigned int gpio) { struct msm_gpio_bank *priv = dev_get_priv(dev);