Re: [PATCH v8 05/17] pwm: lpss: Add pwm_lpss_prepare_enable() helper

2020-08-31 Thread Thierry Reding
On Sun, Aug 30, 2020 at 02:57:41PM +0200, Hans de Goede wrote: > In the not-enabled -> enabled path pwm_lpss_apply() needs to get a > runtime-pm reference; and then on any errors it needs to release it > again. > > This leads to somewhat hard to read code. This commit introduces a new >

[PATCH v8 05/17] pwm: lpss: Add pwm_lpss_prepare_enable() helper

2020-08-30 Thread Hans de Goede
In the not-enabled -> enabled path pwm_lpss_apply() needs to get a runtime-pm reference; and then on any errors it needs to release it again. This leads to somewhat hard to read code. This commit introduces a new pwm_lpss_prepare_enable() helper and moves all the steps necessary for the