hwmon: (pmbus/mp2975) Use i2c_get_match_data()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 25 Mar 2024 12:07:44 +0000 (14:07 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 28 Apr 2024 17:08:33 +0000 (10:08 -0700)
commit73bc2357de6cca4299eea69095a682dd09a699fe
treec324b59a41de56bdd597a0ef86ed7f3c986f9a5e
parent9050b39b2fab51231b6a68d00238e6edea950987
hwmon: (pmbus/mp2975) Use i2c_get_match_data()

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240325120952.3019767-4-andriy.shevchenko@linux.intel.com
[groeck: Dropped __maybe_unused from mp2975_of_match]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/mp2975.c