Re: [PATCH] backlight: pwm_bl: switch to using "atomic" PWM API

2018-07-28 Thread Enric Balletbo i Serra
Hi Daniel, Thanks for reviewing the patch. On 27/07/18 13:32, Daniel Thompson wrote: > On 26/07/18 10:15, Enric Balletbo i Serra wrote: >> The "atomic" API allows us to configure PWM period and duty_cycle and >> enable it in one call. >> >> The patch also moves the pwm_init_state just before any

Re: [PATCH] backlight: pwm_bl: switch to using "atomic" PWM API

2018-07-27 Thread Daniel Thompson
On 26/07/18 10:15, Enric Balletbo i Serra wrote: The "atomic" API allows us to configure PWM period and duty_cycle and enable it in one call. The patch also moves the pwm_init_state just before any use of the pwm_state struct, this fixes a potential bug where pwm_get_state can be called before p

[PATCH] backlight: pwm_bl: switch to using "atomic" PWM API

2018-07-27 Thread Enric Balletbo i Serra
The "atomic" API allows us to configure PWM period and duty_cycle and enable it in one call. The patch also moves the pwm_init_state just before any use of the pwm_state struct, this fixes a potential bug where pwm_get_state can be called before pwm_init_state. Signed-off-by: Enric Balletbo i Ser