提交 ac7f0613 编写于 作者: M Michal Simek

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: NStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
Reviewed-by: NStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
上级 c714aeae
...@@ -81,7 +81,7 @@ static int xilinx_gpio_set_value(struct udevice *dev, unsigned offset, ...@@ -81,7 +81,7 @@ static int xilinx_gpio_set_value(struct udevice *dev, unsigned offset,
priv->output_val[bank] = val; priv->output_val[bank] = val;
return val; return 0;
}; };
static int xilinx_gpio_get_value(struct udevice *dev, unsigned offset) static int xilinx_gpio_get_value(struct udevice *dev, unsigned offset)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册