hwmon: (adt7475) Convert to use device_property APIs
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Tue, 18 Apr 2023 23:36:56 +0000 (11:36 +1200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 8 Jun 2023 13:41:17 +0000 (06:41 -0700)
commit6a01a12d7e1609defa9a025e22e8730008a62104
tree76f40bd66e30816a232dccc459dc27b1e50f6872
parentbd5940221b7d49addfa5e80f3cf8fcd7cedd4dc5
hwmon: (adt7475) Convert to use device_property APIs

Instead of of_property_read_*() use the equivalent
device_property_read_*() API. This will allow these properties to be
used on DT unaware platforms. For DT aware platforms this will be a
noop.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20230418233656.869055-3-chris.packham@alliedtelesis.co.nz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7475.c