All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] gpio: xilinx: Return 0 from xilinx_gpio_set_value
@ 2018-08-06  6:36 Michal Simek
  2018-08-06 15:57 ` Stefan Herbrechtsmeier
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2018-08-06  6:36 UTC (permalink / raw)
  To: u-boot

.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>
---

 drivers/gpio/xilinx_gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c
index 2584b4b3e648..2389abee3777 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)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] gpio: xilinx: Return 0 from xilinx_gpio_set_value
  2018-08-06  6:36 [U-Boot] [PATCH] gpio: xilinx: Return 0 from xilinx_gpio_set_value Michal Simek
@ 2018-08-06 15:57 ` Stefan Herbrechtsmeier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Herbrechtsmeier @ 2018-08-06 15:57 UTC (permalink / raw)
  To: u-boot

Am 06.08.2018 um 08:36 schrieb Michal Simek:
> .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>
> ---
>
>   drivers/gpio/xilinx_gpio.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c
> index 2584b4b3e648..2389abee3777 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)

Reviewed-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-06 15:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-06  6:36 [U-Boot] [PATCH] gpio: xilinx: Return 0 from xilinx_gpio_set_value Michal Simek
2018-08-06 15:57 ` Stefan Herbrechtsmeier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.