LED fix for 5.0-rc3
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQUwxxKyE5l/npt8ARiEGxRG/Sl2wUCXED1agAKCRBiEGxRG/Sl 2125AP4+hSXiVYvxgQg4zeAHzd00GKAIcYTudrzZ/iX5E19UlQD7B3h7HiTgvNIo QOvU+0PChsk/qwg1+Ztw8Gw3WZxl/wM= =I9ym -----END PGP SIGNATURE----- Merge tag 'led-fix-for-5.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds Pull LED fix from Jacek Anaszewski. * tag 'led-fix-for-5.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds: leds: lp5523: fix a missing check of return value of lp55xx_read
This commit is contained in:
commit
2451f3717c
|
@ -318,7 +318,9 @@ static int lp5523_init_program_engine(struct lp55xx_chip *chip)
|
||||||
|
|
||||||
/* Let the programs run for couple of ms and check the engine status */
|
/* Let the programs run for couple of ms and check the engine status */
|
||||||
usleep_range(3000, 6000);
|
usleep_range(3000, 6000);
|
||||||
lp55xx_read(chip, LP5523_REG_STATUS, &status);
|
ret = lp55xx_read(chip, LP5523_REG_STATUS, &status);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
status &= LP5523_ENG_STATUS_MASK;
|
status &= LP5523_ENG_STATUS_MASK;
|
||||||
|
|
||||||
if (status != LP5523_ENG_STATUS_MASK) {
|
if (status != LP5523_ENG_STATUS_MASK) {
|
||||||
|
|
Loading…
Reference in New Issue