mfd: da9062: Simplify obtaining I2C match data
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 4 Dec 2023 12:45:07 +0000 (12:45 +0000)
committerLee Jones <lee@kernel.org>
Thu, 7 Dec 2023 16:06:30 +0000 (16:06 +0000)
commit9b413e3c07d251191410976d669260079b48e7b1
tree20c3b031f8a2c9cd88c8b648b0df8c983ef77e31
parent41673c66b3d0c09915698fec5c13b24336f18dd1
mfd: da9062: Simplify obtaining I2C match data

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

Some minor cleanups:
 * Remove the trailing comma in the terminator entry for the ID
   table making code robust against (theoretical) misrebases or other
   similar things where the new entry goes _after_ the termination without
   the compiler noticing.
 * Move OF table near to the user.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20231204124507.124758-1-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/da9062-core.c