hwmon: (axi-fan-control) Use device firmware agnostic API
authorNuno Sa <nuno.sa@analog.com>
Wed, 14 Feb 2024 14:36:43 +0000 (15:36 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Feb 2024 20:37:46 +0000 (12:37 -0800)
commit1b5239f70fcd2d7fe86f0f5473006c2896db07a8
tree14805a00df790379dfbfc6bfcd2b8eea9fe9a891
parent692cf83bc3c10c8af4dce0d9d2596c72b1037f6c
hwmon: (axi-fan-control) Use device firmware agnostic API

Don't directly use OF and use device property APIs. In addition, this
makes the probe() code neater and also allow us to move the
of_device_id table to it's natural place.

While at it, make sure to explicitly include mod_devicetable.h for the
of_device_id table.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240214-axi-fan-control-no-of-v1-1-43ca656fe2e3@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/axi-fan-control.c