imx: Return gpio_set_value in gpio_direction_output
Subsystems (2)
PATCH v2 4/4 imx: Return gpio_set_value in gpio_direction_output
Return gpio_set_value in gpio_direction_output. Earlier it returned 0 and ignored gpio_set_value's return value.
Signed-off-by Vikram Narayanan <[email protected]>
--- drivers/gpio/mxc_gpio.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/gpio/mxc_gpio.c +1 -2
@@ -145,6 +145,5 @@ int gpio_direction_output(unsigned gpio, int value)if (ret <0 )return ret; -gpio_set_value (gpio, value); -return 0 ; +return gpio_set_value (gpio, value); }
Signature · 1 line
1.7.4.1
PATCH v2 4/4 imx: Return gpio_set_value in gpio_direction_output
Quoted 13 lines · Vikram Narayanan
Return
gpio_set_valueingpio_direction_output. Earlier it returned 0 and ignored gpio_set_value's return value.Signed-off-by Vikram Narayanan <[email protected]>--- drivers/gpio/mxc_gpio.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)drivers/gpio/mxc_gpio.c +0
-0
drivers/gpio/mxc_gpio.c int gpio_direction_output(unsigned gpio, int value) · line 149
Quoted 7 lines
drivers/gpio/mxc_gpio.c +1
-2@@ -145,6 +145,5 @@ int gpio_direction_output(unsigned gpio, int value)if (ret <0 )return ret; -gpio_set_value (gpio, value); -return 0 ; +return gpio_set_value (gpio, value); }
Acked-by Stefano Babic <[email protected]>
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH v2 4/4 imx: Return gpio_set_value in gpio_direction_output
In reply to Vikram NarayananQuoted 5 lines · Vikram Narayanan
Return
gpio_set_valueingpio_direction_output. Earlier it returned 0 and ignored gpio_set_value's return value.Signed-off-by Vikram Narayanan <[email protected]>---
Applied to u-boot-imx (fix), thanks.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================