regulator: mp5416: Make similar OF and ID table
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 3 Sep 2023 16:03:01 +0000 (17:03 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:31:27 +0000 (01:31 +0100)
commit969b033a77a8fa59a5fe9320b371eadd4f4321a6
tree43907d85f67b8a5b3131c041f069fc4b60b39e9a
parent9d9cd8e6a4572efa328ef72a83bbc78a39deca37
regulator: mp5416: Make similar OF and ID table

Make similar OF and ID table to extend support for ID match using
i2c_match_data(). Currently it works only for OF match tables as the
driver_data is wrong for ID match.

While at it, remove trailing comma in the terminator entry for OF/ID
table and drop a space from terminator entry for ID table.

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