Files
Linux/drivers
Uwe Kleine-König 062c9cdf60 pwm: sl28cpld: fix getting driver data in pwm callbacks
Currently .get_state() and .apply() use dev_get_drvdata() on the struct
device related to the pwm chip.  This only works after .probe() called
platform_set_drvdata() which in this driver happens only after
pwmchip_add() and so comes possibly too late.

Instead of setting the driver data earlier use the traditional
container_of approach as this way the driver data is conceptually and
computational nearer.

Fixes: 9db33d221e ("pwm: Add support for sl28cpld PWM controller")
Tested-by: Michael Walle <[email protected]>
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2020-12-03 09:57:37 -08:00
..
…
2020-11-18 16:42:07 -08:00
…
2020-11-12 13:59:04 -07:00
…
…
…
…
…
…
2020-11-11 09:53:09 +01:00
…
…
…
…
…
…
2020-10-27 19:23:04 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…