]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (ltc2947) Move to firmware agnostic API
authorNuno Sa <nuno.sa@analog.com>
Fri, 26 Jul 2024 12:07:33 +0000 (14:07 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 31 Jul 2024 17:43:52 +0000 (10:43 -0700)
commite21d6d4c7acb77fafc71586a0c94db928219c78e
treed843fa7fe3690f571585e65ed1bf9fef66b3d25f
parent777c97ff08d02ef2d19326b8ca9ef9f82b709007
hwmon: (ltc2947) Move to firmware agnostic API

Use the device property APIs so the driver does not depend on OF to
work.

While at it, properly include mod_devicetable for struct of_device_id
and fix some parameter alignment in the changed places.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240726-dev-hwmon-ltc6947-fw-agnostic-v1-1-f7d6cab7d438@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc2947-core.c