hwmon/ltc2990: Generalise DT to fwnode support
authorMax Staudt <max@enpas.org>
Mon, 19 Aug 2019 12:16:17 +0000 (14:16 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 3 Sep 2019 19:47:17 +0000 (12:47 -0700)
commit06a1c69cf5de7b866f2871477839f1aa14e48ea5
tree3744a6d4ef4a53375c84702d789803f5d4f8e8e4
parent10b1f2a9d411a1afcd5e5249bf411fb823d71701
hwmon/ltc2990: Generalise DT to fwnode support

ltc2990 will now use device_property_read_u32_array() instead of
of_property_read_u32_array() - allowing the use of software nodes
via fwnode_create_software_node().

This allows code using i2c_new_device() to specify a default
measurement mode for the LTC2990 via fwnode_create_software_node().

Signed-off-by: Max Staudt <max@enpas.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20190819121618.16557-2-max@enpas.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc2990.c