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

2018-08-14 Thread Daniel Thompson
On Tue, Aug 07, 2018 at 11:38:04AM +0200, Enric Balletbo i Serra wrote: > Hi Daniel, > > On 30/07/18 13:12, Daniel Thompson wrote: > > On Fri, Jul 27, 2018 at 05:11:21PM +0200, Enric Balletbo i Serra wrote: > >> The "atomic" API allows us to configure PWM period and duty_cycle and > >> enable it i

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

2018-08-07 Thread Enric Balletbo i Serra
Hi Daniel, On 30/07/18 13:12, Daniel Thompson wrote: > On Fri, Jul 27, 2018 at 05:11:21PM +0200, 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

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

2018-07-30 Thread Daniel Thompson
On Fri, Jul 27, 2018 at 05:11:21PM +0200, 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_g

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

2018-07-28 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