mfd: max77541: Simplify obtaining I2C match data
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 23 Sep 2023 17:49:27 +0000 (18:49 +0100)
committerLee Jones <lee@kernel.org>
Wed, 1 Nov 2023 10:02:12 +0000 (10:02 +0000)
commitbffa42885f3bbddce56e17e619e083f041812f8a
treee5f6ab8122b48e3b12e8ba000ed42ecdbff8939f
parentf1f23a1a79512a22f9153e9b6d1c98a2b4ab300f
mfd: max77541: Simplify obtaining I2C match data

Simplify probe() by replacing device_get_match_data() and ID lookup for
retrieving match data by i2c_get_match_data().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230923174928.56824-4-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max77541.c