rtc: rk808: reduce 'struct rk808' usage
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 20 Oct 2022 20:42:41 +0000 (22:42 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 11 Dec 2022 19:56:33 +0000 (20:56 +0100)
commit2e830ccc21eb67a4c2490279d907e5e9199e5156
tree39dd5e5f93c76b902c75bb9c53611f4e94107dff
parent21b8a1dd56a163825e5749b303858fb902ebf198
rtc: rk808: reduce 'struct rk808' usage

Reduce usage of 'struct rk808' (driver data of the parent MFD), so
that only the chip variant field is still being accessed directly.
This allows restructuring the MFD driver to support SPI based
PMICs.

Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20221020204251.108565-4-sebastian.reichel@collabora.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rk808.c