mfd: max8998: Simplify obtaining I2C match data and drop max8998_i2c_get_driver_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 23 Sep 2023 17:49:28 +0000 (18:49 +0100)
committerLee Jones <lee@kernel.org>
Wed, 1 Nov 2023 10:02:13 +0000 (10:02 +0000)
commitc4974eea6ca9f4080557bfdf0adc48396d8575f4
tree3e250f4b0f8511967d0027c6af126b7eac02267c
parentbffa42885f3bbddce56e17e619e083f041812f8a
mfd: max8998: Simplify obtaining I2C match data and drop max8998_i2c_get_driver_data()

Simplify probe() by using i2c_get_match_data() instead of
max8998_i2c_get_driver_data() for retrieving match data from
OF/ID tables.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230923174928.56824-5-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max8998.c