regulator: fan53555: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 28 Aug 2023 16:47:46 +0000 (17:47 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:31:23 +0000 (01:31 +0100)
commit364a399b7ca35e8f2291ab95bff28baa6e119efe
tree254083d3d0a118a586bc97128a870b5ba154a4a3
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
regulator: fan53555: Simplify probe()

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

While at it, use dev_fwnode() API instead of 'client->dev.of_node'.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230828164746.102992-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/fan53555.c