commit | 10d097737dfe27bb0bf3f825b5ff28d26053a8c6 | [log] [tgz] |
---|---|---|
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | Thu Sep 24 20:51:00 2020 +1200 |
committer | Guenter Roeck <linux@roeck-us.net> | Thu Sep 24 07:41:30 2020 -0700 |
tree | b63be7f6271d8008c4146cb2ffee7a4e881da56c | |
parent | 55163a1c00fcb526e2aa9f7f952fb38d3543da5e [diff] |
hwmon: (adm9240) Use loops to avoid duplicated code Use loops for reading temp_max and initialising FAN_MIN/TEMP_MAX rather than duplicating code. Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Link: https://lore.kernel.org/r/20200924085102.15219-2-chris.packham@alliedtelesis.co.nz Signed-off-by: Guenter Roeck <linux@roeck-us.net>