]> git.hungrycats.org Git - linux/commit
hwmon: (adt7475) Add explicit header include
authorFlaviu Nistor <flaviu.nistor@gmail.com>
Fri, 22 May 2026 05:23:52 +0000 (08:23 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:23:09 +0000 (08:23 -0700)
commitd0154a9422eed727a37ac8efad18216e5db0757a
treeae3b0a3729b6a48c9fb3f980f1c5de559ec458cd
parent964acc34569677e6725812172c3d1a28b3973277
hwmon: (adt7475) Add explicit header include

Since device_property_read_string() and similar functions defined in
linux/property.h are used in the driver add explicit include for
linux/mod_devicetable.h and linux/property.h rather than having implicit
inclusions.
Removed of_match_ptr() improving non-Device Tree compatibility of the
driver and drop unnecessary __maybe_unused.
Header linux/of.h can't be removed yet since macro is_of_node() is used.

Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>
Link: https://lore.kernel.org/r/20260522052352.12139-1-flaviu.nistor@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7475.c