From patchwork Mon Nov 6 15:29:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 741404 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1149608wrr; Mon, 6 Nov 2023 07:30:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFX4LxwjI1Viu2gC3ynhdOoOJsx+CW9wWJ5+4gPOnUvkIHLQmQtPGlH+FnG+AOEian0TSbt X-Received: by 2002:a05:6402:2029:b0:53d:a7d9:5149 with SMTP id ay9-20020a056402202900b0053da7d95149mr22835140edb.6.1699284617994; Mon, 06 Nov 2023 07:30:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699284617; cv=none; d=google.com; s=arc-20160816; b=turTdL3BYgp/U/Jao9i2E5RXjs7XO9d/dtIFqBbwazt7NyLNb1sP7JEusQZT8fXuKv k+GbWprV+/27kYBvSw5e5oQ4x1i16qB2bZdAfoHiNgibsZEfUDeKAICIKNJV/++y7CkC GfBogKBzMetFitPm9sZwsa4ViKqCXn0ZhFR1RTI4oWCqTMDt/1utCzpjd9S7O6teyLHW xojQBZreGav19ER61++MnqdwXTl2A2j3Kg5l2OjHGSkSL9I9pO6LgdW9sOOkowU6+MFM SmaJVie6LKW8nfZfR0ToyW/BQDKsMjvHQKCeWnltY+YU73Li5cuMnYEQEj6VWf99iZOt b8yA== 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=UtIt9RHM7jSGdXgOG4034U97MhrFmyCZJewGF1z1I/g=; fh=GowdQhFHojjDa0VFAVprx0l6qpleMCeMha4WUJGY9kk=; b=dJYuwDfoZdpcPCWQfccCr056ELyZ6lJQzan8fyi8S+M8p0SxqqFBX7oqM/bNC5ipjE Avb3bnmA/lL2V5Wq4ALA/C8mLGgEqGhptibT8GEF7QxRaLn88sjNWWJC9YxnPYEzTC4N CwIARzya9/GF3iBt8jusETsmiUyaPY/fcV6Vc7CY+G2TBwR29sKkzjMMxz6YUEC6Z8Ll VFFXF7Tr8Y8Hr5twH+zajs8jZSEQVHjDtfaLUJOAk09UdyFO9Np5Rk6p0I3uB0G9B3Eg pDboWynnNp4NZt5/gV6qKf20/4Y3ORzKppeL+tH+L29h8E77p+s6l/EPNC7JkLy2mmXM KLpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I+jploHT; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id o27-20020a509b1b000000b00532ea5bd937si588793edi.527.2023.11.06.07.30.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 07:30:17 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I+jploHT; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 65B8D87063; Mon, 6 Nov 2023 16:29:35 +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="I+jploHT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8783586F42; Mon, 6 Nov 2023 16:29:32 +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-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 C7D3586F8D for ; Mon, 6 Nov 2023 16:29:08 +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-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40836ea8cbaso32622465e9.0 for ; Mon, 06 Nov 2023 07:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699284548; x=1699889348; 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=UtIt9RHM7jSGdXgOG4034U97MhrFmyCZJewGF1z1I/g=; b=I+jploHTWlDTh6upvGYY7ff+pwrDMf7L2fwHu/34YVgUzC2A6/p7YTc4PPZ31YSQPg HY+E5SqW3SKl9S/Z8GUpPJsGi+oBsT0WM1kIyQ3Z/HfwHK8vNHX+v3qf+uZVOm4ynfKX M5CYqIXca/cPyLCn+0zzorU3AoTlfyzSiwFQoYAr4bhaxrF4EIoCwVgPxElCA7fc1JRs vwJMbEZfmrG+PICGRQqbMAkZImYWcgdWb4DMmqXcXtJBvQZBhxmgMPy2nMVgnamMQRo/ Hm+wX8u94S3hLta2Awo6wzoy5D3a1D+0c52OTmJ5xwGqrntf/14id91/UHqrahDQWLBx TZHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699284548; x=1699889348; 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=UtIt9RHM7jSGdXgOG4034U97MhrFmyCZJewGF1z1I/g=; b=obAFYHIJXxIrJ3+OXNMSIsAGjKWe4p4xLQJbyBofl3R8iZQ+PBM++/jCKtF9BW48Xn EGjw3yrdx+q/+CER0bCnQs2x6Gj7GElzHQhhG8yiBUk9cz9LPkwLe5MVHy6SuKJLOoeS 2Sp6i6pu9S5rccoNyhXqBow5rFNoIUP3OL7r4hIZZ4VlGVEMCBVkwZ6IChHWcjAt218I szl6B/2XdX3fCwBL8Y4jDsRkiXsth7SFSKPATDpahAhg0T5ejYc57R5T4345li2O+DeR ghJ/ZRPWqLk7/XXv/W35OT2USsGDASZaymDD7Q51Lr2apfIPJ4/nNRVDCvQ5QmGpSNY/ gmtQ== X-Gm-Message-State: AOJu0YztU0LrGssWEaoqlsmeR35pLCTZtuK00wMSh/kyvgICH1en06Ty SNN5n5NE5zuQVx388B7118agyw== X-Received: by 2002:a05:600c:1c08:b0:40a:28b1:70fc with SMTP id j8-20020a05600c1c0800b0040a28b170fcmr21196wms.8.1699284548183; Mon, 06 Nov 2023 07:29:08 -0800 (PST) Received: from lion.localdomain (host-92-25-138-185.as13285.net. [92.25.138.185]) by smtp.gmail.com with ESMTPSA id bx30-20020a5d5b1e000000b0032f7d1e2c7csm8116094wrb.95.2023.11.06.07.29.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 07:29:07 -0800 (PST) From: Caleb Connolly Date: Mon, 06 Nov 2023 15:29:03 +0000 Subject: [PATCH v2 4/5] msm_gpio: use unsigned int MIME-Version: 1.0 Message-Id: <20231106-b4-qcom-pinctrl-v2-4-406e8d8689ca@linaro.org> References: <20231106-b4-qcom-pinctrl-v2-0-406e8d8689ca@linaro.org> In-Reply-To: <20231106-b4-qcom-pinctrl-v2-0-406e8d8689ca@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=LwYk6/r+mWoVE7/aOiPWrqkTuHS6dGyX68p0AcAA5Ak=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhlRPNrvLds9FPt34MEXnW/alJXMmpXYZHbiR/a3UP3qXm 57X5Y2zOkpZGAQ5GGTFFFnETyyzbFp72V5j+4ILMHNYmUCGMHBxCsBE9uxiZOiZm8WxUeArP1Nc TKlRlaPbL4WyDWZTbF7H57eEVXTp8zAy9P5XbdggVfb7WFnFr+/GKgIfrr4y3NpgYGZ4xtnl7aH VegA= 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 7d77776a25fd..3e4a0194b10a 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);