Commit 5c31252c4a86 ("pwm: Add the pwm_is_enabled() helper") introduced anew function to test whether a PWM device is enabled or not withoutmanipulating PWM internal fields.Hiding this is necessary if we want to smoothly move to the atomic PWMconfig approach without impacting PWM drivers.Fix this driver to use pwm_is_enabled() instead of directly accessing the->flags field.