mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-29 07:33:29 +08:00
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>
This commit is contained in:
parent
c714aeaec1
commit
ac7f061398
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user