mfd: max8997: Simplify obtaining I2C match data and drop max8997_i2c_get_driver_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 28 Aug 2023 16:02:24 +0000 (17:02 +0100)
committerLee Jones <lee@kernel.org>
Wed, 1 Nov 2023 10:02:09 +0000 (10:02 +0000)
commit676c26722333301e2d8794401f3c14e6c225f27f
tree3705b8edf1b84c0074e91438dc0889d1d6918097
parent3c70342f1f0045dc827bb2f02d814ce31e0e0d05
mfd: max8997: Simplify obtaining I2C match data and drop max8997_i2c_get_driver_data()

Simplify probe() by using i2c_get_match_data() instead of
max8997_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/20230828160224.92037-1-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max8997.c