gpio: xilinx: Return 0 from xilinx_gpio_set_value
authorMichal Simek <michal.simek@xilinx.com>
Mon, 6 Aug 2018 05:42:40 +0000 (07:42 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 7 Aug 2018 09:03:43 +0000 (11:03 +0200)
.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 <stefan@herbrechtsmeier.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
drivers/gpio/xilinx_gpio.c

index 2fb1fe348e39d340e75e7b9575756059d45958e6..fc460c343efe849ff511072311f259208981a72b 100644 (file)
@@ -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)