led: pwm: fail if required max-brightness option is missing
If we leave max_value at the default value of zero led_pwm_set above
will divide by zero in do_div. The binding makes max-brightness
a mandatory property, so have the driver treat it as such as well.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2131922 commit f2fae1be3aa51e9665b4b947f7f0f4f723e264d6
@Ahmad Fatoum Ahmad Fatoum authored on 6 Feb 2020
Sascha Hauer committed on 10 Feb 2020
Showing 1 changed file
View
drivers/led/led-pwm.c