]> asedeno.scripts.mit.edu Git - linux.git/commit
leds: lm3532: Fix optional led-max-microamp prop error handling
authorDan Murphy <dmurphy@ti.com>
Wed, 11 Sep 2019 18:27:30 +0000 (13:27 -0500)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Thu, 12 Sep 2019 18:45:52 +0000 (20:45 +0200)
commit6d4faf3b6b6eb3c8a750b2e6659a5b1ff3dd9e75
tree7a6d4f89960fa06353f9ed71ab7761f32a06a74f
parent4016ba85880b252365d11bc7dc899450f2c73ad7
leds: lm3532: Fix optional led-max-microamp prop error handling

Fix the error handling for the led-max-microamp property.
Need to check if the property is present and then if it is
retrieve the setting and its max boundary

Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/leds-lm3532.c