hwmon: (adm9240) Convert to regmap
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 24 Sep 2020 08:51:02 +0000 (20:51 +1200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 24 Sep 2020 14:44:51 +0000 (07:44 -0700)
commitdf885d912f678f45a867c4eb3f3a5b0ea17796f4
tree2cdcd971bfa1bf483c815c2b78f9869ba7113af8
parent6a8cdd146459a4f48d2932908b608cf44f18970e
hwmon: (adm9240) Convert to regmap

Convert the adm9240 driver to using regmap and add error handling.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20200924085102.15219-4-chris.packham@alliedtelesis.co.nz
[groeck: Fixed context conflict against 'hwmon: use simple i2c probe function']
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adm9240.c