]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (jc42) Drop of_match_ptr() protection
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Nov 2024 12:43:48 +0000 (14:43 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 12 Nov 2024 21:54:55 +0000 (13:54 -0800)
commitc412d7af010154ce9273dbc0296ae9327a605256
tree24ad27c07a522eb92b564dee2ef0d872d6f37620
parent2e5bdf8aa2f49d06200fb6e645673c819135b614
hwmon: (jc42) Drop of_match_ptr() protection

This prevents use of this driver with ACPI via PRP0001 and
is an example of an anti pattern I'm trying to remove from
the kernel. Hence drop from this driver.

Also switch of.h for mod_devicetable.h include given use of
struct of_device_id which is defined in that header.

Reported-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Closes: https://lore.kernel.org/r/CACSj6VW7WKv5tiAkLCvSujENJvXq1Mc7_7vtkQsRSz3JGY0i3Q@mail.gmail.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Message-ID: <20241108124348.1392473-1-andriy.shevchenko@linux.intel.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/jc42.c