mfd: rk8xx-i2c: Use device_get_match_data
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 4 May 2023 17:36:10 +0000 (19:36 +0200)
committerLee Jones <lee@kernel.org>
Mon, 15 May 2023 15:19:30 +0000 (16:19 +0100)
commit74413bd611b4fd21fdf90e369780b2f8543447a4
tree9dc07d4bcdfd7b6e9bbd27c4b2edd4869d5f6842
parentc20e8c5b1203af3726561ee5649b147194e0618e
mfd: rk8xx-i2c: Use device_get_match_data

Simplify the device identification logic by supplying the relevant
information via of_match_data. This also removes the dev_info()
printing the chip version, since that's supplied by the match data
now.

Due to lack of hardware this change is compile-tested only.

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-7-sebastian.reichel@collabora.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/rk8xx-core.c
drivers/mfd/rk8xx-i2c.c