On Tue, Dec 21, 2021 at 01:04:50PM +0100, Lars-Peter Clausen wrote:I'm not so sure. I don't see how you have to modify every function. You'd keep using priv to get a pointer to the state struct.
On 12/21/21 12:35 PM, Uwe Kleine-König wrote:All drivers have to be touched. With my patch series you have to modify
On Tue, Dec 21, 2021 at 12:12:12PM +0100, Lars-Peter Clausen wrote:I know, but this series has to be reverted when the framework is fixed.
On 12/21/21 11:45 AM, Uwe Kleine-König wrote:Just to mention it: My patch series didn't change this, this was already
similar to patchNot sure if this is such a good idea. struct counter_device should not be
https://lore.kernel.org/r/4bde7cbd9e43a5909208102094444219d3154466.1640072891.git.vilhelm.gray@xxxxxxxxx
the usage of struct counter_device::priv can be replaced by
container_of which improves type safety and code size.
This series depends on above patch, converts the remaining drivers and
finally drops struct counter_device::priv.
embedded in the drivers state struct in the first place.
broken before.
one function in each driver, without my patch you have touch nearly
every function.