hwmon: (max6650) Use i2c_get_match_data()
authorRob Herring <robh@kernel.org>
Wed, 15 Nov 2023 20:57:00 +0000 (14:57 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 11 Dec 2023 14:20:28 +0000 (06:20 -0800)
commit5cfc392cc93b42d5b0bdea12eecb649887b9991d
tree4b4a5e30f190404ffdba73c5e4b452782e49d9f8
parentb0d51ada88a326e2bb58323b64879a596cd339f3
hwmon: (max6650) Use i2c_get_match_data()

Use preferred i2c_get_match_data() instead of of_match_device() and
i2c_match_id() to get the driver match data. With this, adjust the
includes to explicitly include the correct headers.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231115205703.3730448-1-robh@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max6650.c