OSDN Git Service

hwmon: (adm9240) Create functions for updating measure and config
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 24 Sep 2020 08:51:01 +0000 (20:51 +1200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 24 Sep 2020 14:41:47 +0000 (07:41 -0700)
commit6a8cdd146459a4f48d2932908b608cf44f18970e
tree7fa42f5628867b641bee5b6891166840f50217a3
parent10d097737dfe27bb0bf3f825b5ff28d26053a8c6
hwmon: (adm9240) Create functions for updating measure and config

Split the body of adm9240_update_device() into two helper functions
adm9240_update_measure() and adm9240_update_config(). Although neither
of the new helpers returns an error yet lay the groundwork for
propagating failures through to the sysfs readers.

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