clk: RK808: Reduce 'struct rk808' usage
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 4 May 2023 17:36:05 +0000 (19:36 +0200)
committerLee Jones <lee@kernel.org>
Mon, 15 May 2023 15:13:56 +0000 (16:13 +0100)
commit2dc51ca822e4633e244e7f7bdc51e76a77dca939
tree3c6f55e815c6dc536139a36833ff2e019d3a6051
parentac9a78681b921877518763ba0e89202254349d1b
clk: 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: Stephen Boyd <sboyd@kernel.org>
Tested-by: Diederik de Haas <didi.debian@cknow.org> # Rock64, Quartz64 Model A + B
Tested-by: Vincent Legoll <vincent.legoll@gmail.com> # Pine64 QuartzPro64
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230504173618.142075-2-sebastian.reichel@collabora.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/clk/clk-rk808.c