Message ID | 20231025-b4-qcom-pinctrl-v1-4-9123d6a217eb@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | arm: mach-snapdragon: Qualcomm pinctrl driver cleanup | expand |
On Tue, 31 Oct 2023 at 19:52, Caleb Connolly <caleb.connolly@linaro.org> wrote: > > Replaces the uses of "unsigned" with "unsigned int". > > Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> > --- > drivers/gpio/msm_gpio.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Sumit Garg <sumit.garg@linaro.org> -Sumit > diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c > index 7a09abdafb2e..7d01fecf46f2 100644 > --- a/drivers/gpio/msm_gpio.c > +++ b/drivers/gpio/msm_gpio.c > @@ -49,7 +49,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); > > @@ -63,7 +63,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); > @@ -81,7 +81,7 @@ 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); > > @@ -91,7 +91,7 @@ static int msm_gpio_get_value(struct udevice *dev, unsigned gpio) > 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); > > > -- > 2.42.0 >
diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index 7a09abdafb2e..7d01fecf46f2 100644 --- a/drivers/gpio/msm_gpio.c +++ b/drivers/gpio/msm_gpio.c @@ -49,7 +49,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); @@ -63,7 +63,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); @@ -81,7 +81,7 @@ 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); @@ -91,7 +91,7 @@ static int msm_gpio_get_value(struct udevice *dev, unsigned gpio) 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);
Replaces the uses of "unsigned" with "unsigned int". Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> --- drivers/gpio/msm_gpio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)