pwm: twl: Return proper error if twl6030_pwm_enable() fails
PATCH 1/1 pwm: twl: Return proper error if twl6030_pwm_enable() fails
Return proper error instead of 0 if twl6030_pwm_enable() fails.
Signed-off-by Axel Lin <[email protected]>
--- drivers/pwm/pwm-twl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/pwm-twl.c +1 -1
@@ -248,7 +248,7 @@ static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) twl->twl6030_toggle3 = val; out:mutex_unlock (&twl->mutex); -return 0 ; +return ret; }static void twl6030_pwm_disable (struct pwm_chip *chip,struct pwm_device *pwm)
Signature · 1 line
1.7.10.4
Quoted 3 lines · Axel Lin
Return proper error instead of 0 if
twl6030_pwm_enable()fails.Signed-off-by Axel Lin <[email protected]>
Acked-by Peter Ujfalusi <[email protected]>
Quoted 18 lines
--- drivers/pwm/pwm-twl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pwm/pwm-twl.c +1
-1@@ -248,7 +248,7 @@ static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) twl->twl6030_toggle3 = val; out:mutex_unlock (&twl->mutex); -return 0 ; +return ret; }static void twl6030_pwm_disable (struct pwm_chip *chip,struct pwm_device *pwm)
Signature · 1 line
Péter
Thierry Reding
AppliedQuoted 6 lines · Axel Lin
Return proper error instead of 0 if
twl6030_pwm_enable()fails.Signed-off-by Axel Lin <[email protected]>--- drivers/pwm/pwm-twl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thierry