regulator: pv880x0: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 3 Sep 2023 16:48:32 +0000 (17:48 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:30:10 +0000 (01:30 +0100)
commit1b4daf643a3a21cff4bcad5b799960d5a0673d11
tree2f762340f9bff328c6334b18c62538285294b4ab
parentc187b8f87d553cc124c568ecc010a8bf73cf745f
regulator: pv880x0: Simplify probe()

Replace pv88080_types->pv88080_compatible_regmap in OF/ID tables and
simplify the probe() by replacing of_match_node() and ID lookup for
retrieving match data by i2c_get_match_data(). After this there is
no user of enum pv88080_types. So drop it.

While at it, move OF table near to the user.

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