Skip to content
Commit 3b5169c2 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (adm9240) Fix writes into inX_max attributes

When converting the driver to use the devm_hwmon_device_register_with_info
API, the wrong register was selected when writing into inX_max attributes.
Fix it.

Fixes: 124b7e34

 ("hwmon: (adm9240) Convert to devm_hwmon_device_register_with_info API")
Reported-by: default avatarChris Packham <Chris.Packham@alliedtelesis.co.nz>
Tested-by: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 8370e5b0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment