[PATCHv6 06/11] mfd: rk8xx-i2c: use device_get_match_data
Lee Jones
lee at kernel.org
Thu Mar 2 08:50:46 PST 2023
On Fri, 27 Jan 2023, Sebastian Reichel wrote:
> 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.
>
> Signed-off-by: Sebastian Reichel <sebastian.reichel at collabora.com>
> ---
> drivers/mfd/rk8xx-core.c | 2 -
> drivers/mfd/rk8xx-i2c.c | 89 +++++++++++++++++-----------------------
> 2 files changed, 37 insertions(+), 54 deletions(-)
For my own reference (apply this as-is to your sign-off block):
Acked-for-MFD-by: Lee Jones <lee at kernel.org>
--
Lee Jones [李琼斯]
More information about the Linux-rockchip
mailing list