diff options
author | Michal Simek | 2018-08-06 07:42:40 +0200 |
---|---|---|
committer | Michal Simek | 2018-08-07 11:03:43 +0200 |
commit | ac7f061398ba48904e2900f1f9df93f35f5c88c8 (patch) | |
tree | d0f6ab61b5e959ceae9971ada825fd24db9d1916 /drivers/gpio | |
parent | c714aeaec19559d1b05cbb7a501000c3904b1f87 (diff) |
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 <stefan@herbrechtsmeier.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/xilinx_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index 2fb1fe348e3..fc460c343ef 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) |