]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtc: ab8500: Simplify driver_data handling
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Thu, 28 May 2026 06:48:11 +0000 (08:48 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 22 Jun 2026 00:22:42 +0000 (02:22 +0200)
commit6e2f1f0184dad775c95c09e5374234d3df39de65
treef12c1e6d522c3ca97404725d3613bb98bebd66e8
parentba5dca876b54c848fe4ba6526454a6eed7856f57
rtc: ab8500: Simplify driver_data handling

Instead of hiding the rtc ops for the only supported device behind an
abstraction for multi-device support, hardcode the used ops which gets rid
of the need to call platform_get_device_id and two casts.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/a909d3c59d00756130ac16051ceedbec0ce9cec7.1779950275.git.u.kleine-koenig@baylibre.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ab8500.c