]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (tmp108) Drop of_match_ptr() protection
authorGuenter Roeck <linux@roeck-us.net>
Wed, 4 Dec 2024 14:17:54 +0000 (06:17 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 14 Dec 2024 16:00:44 +0000 (08:00 -0800)
commit27cad221a4dddc27b281fabcf500fd307a196bac
tree575a7d9c8501695bcb7d272e66e1ad9f9904c277
parentbddbb9cff4ab97ad367692201a0abe680a59d44d
hwmon: (tmp108) Drop of_match_ptr() protection

Limiting the scope of devicetree support to CONFIG_OF prevents use of this
driver with ACPI via PRP0001. Drop the dependency.

While at it,
- Switch of.h for mod_devicetable.h include given the use of struct
  of_device_id which is defined in that header
- Add I2C device ID for p3t1085
- Drop the unnecessary include of hwmon-sysfs.h.

Cc: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241204141754.4051186-1-linux@roeck-us.net
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp108.c