mfd: rk808: Replace 'struct i2c_client' with 'struct device'
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 4 May 2023 17:36:08 +0000 (19:36 +0200)
committerLee Jones <lee@kernel.org>
Mon, 15 May 2023 15:18:27 +0000 (16:18 +0100)
commit049449976f549605a6913d468b61356a9950a6a2
tree10a26011cd345bc5092c0944bbdd9b22a7614e64
parente714b50bdf3cf45076c601276e9e3da00ea05319
mfd: rk808: Replace 'struct i2c_client' with 'struct device'

Put 'struct device' pointer into the MFD platform_data instead
of the 'struct i2c_client' pointer. This simplifies the code
and prepares the MFD for SPI support.

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-5-sebastian.reichel@collabora.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/rk808.c
include/linux/mfd/rk808.h