1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 09:32:12 +00:00
Uwe Kleine-König 384461abca pwm: Manage owner assignment implicitly for drivers
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 low level drivers cannot forget the assignment and
save one line each. The pwm-crc driver didn't assign .owner, that's not
a problem in practice though as the driver cannot be compiled as a
module.

Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com> # Intel LPSS
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> # pwm-{bcm,brcm}*.c
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> # sun4i
Acked-by: Andi Shyti <andi.shyti@kernel.org>
Acked-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> # pwm-visconti
Acked-by: Heiko Stuebner <heiko@sntech.de> # pwm-rockchip
Acked-by: Michael Walle <michael@walle.cc> # pwm-sl28cpld
Acked-by: Neil Armstrong <neil.armstrong@linaro.org> # pwm-meson
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230804142707.412137-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2023-10-13 10:07:17 +02:00
..
2023-09-01 09:53:54 -07:00
2023-09-04 13:47:59 -07:00
2023-09-07 16:07:35 -07:00
2023-09-03 10:20:57 -07:00
2023-08-31 15:36:41 -07:00
2023-09-02 11:10:50 -07:00
2023-08-29 20:21:42 -07:00
2023-09-01 15:58:21 -07:00
2023-08-28 15:04:43 -07:00
2023-09-01 09:43:18 -07:00
2023-08-30 13:34:34 -07:00
2023-09-01 00:29:34 +02:00
2023-08-28 11:04:18 -07:00
2023-08-31 12:47:15 +02:00
2023-09-04 11:26:29 -07:00
2023-08-29 20:21:42 -07:00
2023-09-01 16:54:25 -07:00
2023-08-30 09:07:09 -07:00
2023-08-30 13:45:05 -07:00
2023-08-31 12:20:12 -07:00
2023-08-30 20:23:07 -07:00
2023-08-31 12:20:12 -07:00
2023-09-02 15:17:33 -07:00
2023-08-30 09:07:09 -07:00
2023-08-31 12:20:12 -07:00
2023-09-01 16:34:25 -07:00