From: Michal Simek Date: Mon, 6 Aug 2018 05:42:40 +0000 (+0200) Subject: gpio: xilinx: Return 0 from xilinx_gpio_set_value X-Git-Tag: v2018.09-rc2~65^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac7f061398ba48904e2900f1f9df93f35f5c88c8;p=platform%2Fkernel%2Fu-boot.git gpio: xilinx: Return 0 from xilinx_gpio_set_value .set_value functions have no specified return value and gpio_uclass is not working with it too. But this patch is returning 0 to be in sync with others DM gpio drivers. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek Reviewed-by: Stefan Herbrechtsmeier --- diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index 2fb1fe3..fc460c3 100644 --- a/drivers/gpio/xilinx_gpio.c +++ b/drivers/gpio/xilinx_gpio.c @@ -81,7 +81,7 @@ static int xilinx_gpio_set_value(struct udevice *dev, unsigned offset, priv->output_val[bank] = val; - return val; + return 0; }; static int xilinx_gpio_get_value(struct udevice *dev, unsigned offset)