hwmon: (tmp513) Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 24 Aug 2023 20:44:55 +0000 (21:44 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 25 Aug 2023 14:43:10 +0000 (07:43 -0700)
commit919a83d020a8dfa1411c1dc1cff23a833f0f5268
tree6ecc1c0e0c1e65eaae15ca01b504c4125c962d88
parentd103337e38e7e64c3d915029e947b1cb0b512737
hwmon: (tmp513) Simplify probe()

Simpilfy probe() by replacing device_get_match_data() and id lookup for
retrieving match data by i2c_get_match_data().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230824204456.401580-3-biju.das.jz@bp.renesas.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp513.c