Re: [PATCH] media: ir-rx51: Switch to atomic PWM API

From: Uwe Kleine-König
Date: Sun Oct 31 2021 - 13:44:02 EST


On Sat, Oct 30, 2021 at 08:20:50AM -0300, Maíra Canal wrote:
> Hello Uwe,
>
> > Doing this here introduces a change in behaviour. Better do this after
> > pwm_get().
>
> I didn't really get this feedback. Isn't pwm_init_state after pwm_get?
> Or should it be before the error treatment of pwm_get?

It is, but it might be repeated resetting the pwm settings when the
device is reopened.

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |

Attachment: signature.asc
Description: PGP signature