Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 73bc2357 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Guenter Roeck
Browse files

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: default avatarAndy 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: default avatarGuenter Roeck <linux@roeck-us.net>
parent 9050b39b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment