mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
- fix pwm backlight
-----BEGIN PGP SIGNATURE----- iGwEABECACwWIQSC4hxrSoIUVfFO0kRM6ATMmsalXAUCXSEfKA4cYWd1c3RAZGVu eC5kZQAKCRBM6ATMmsalXDGrAJ0eQ5fZwSiITDCabbmQ5ExYa+tNtgCeKGKpAXpz STV1LiwLq2PYHW0B3bw= =0lJG -----END PGP SIGNATURE----- Merge tag 'video-for-2019.07' of https://gitlab.denx.de/u-boot/custodians/u-boot-video - fix pwm backlight
This commit is contained in:
commit
29e9363504
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ static int set_pwm(struct pwm_backlight_priv *priv)
|
|||
return log_ret(ret);
|
||||
|
||||
ret = pwm_set_invert(priv->pwm, priv->channel, priv->polarity);
|
||||
if (ret == -ENOSYS && !priv->polarity)
|
||||
ret = 0;
|
||||
|
||||
return log_ret(ret);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue