Re: [PATCH 1/2] pwm: Manage owner assignment implicitly for drivers

2023-08-03 Thread Laurent Pinchart
Hi Uwe, Thank you for the patch. On Thu, Aug 03, 2023 at 04:06:31PM +0200, Uwe Kleine-König wrote: > Instead of requiring each driver to care for assigning the owner member > of struct pwm_ops, handle that implicitly using a macro. Note that the > owner member has to be moved to struct pwm_chip,

[PATCH 1/2] pwm: Manage owner assignment implicitly for drivers

2023-08-03 Thread Uwe Kleine-König
Instead of requiring each driver to care for assigning the owner member of struct pwm_ops, handle that implicitly using a macro. Note that the owner member has to be moved to struct pwm_chip, as the ops structure usually lives in read-only memory and so cannot be modified. The upside is that new l