Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8e4df31 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding
Browse files

pwm: twl: Return proper error if twl6030_pwm_enable() fails



Return proper error instead of 0 if twl6030_pwm_enable() fails.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent b014a30c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)