commit | efb0489ea8fa12c6a5b51c0b3e35f4f3d5d54939 | [log] [tgz] |
---|---|---|
author | Nicolin Chen <nicoleotsuka@gmail.com> | Mon Nov 05 12:48:40 2018 -0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Sun Dec 16 15:13:11 2018 -0800 |
tree | 6e7da4f369e6f637bc5ef29f3725fa3222cb67f3 | |
parent | df04ced684d48f6ec5729ccd034702952160c6b3 [diff] |
hwmon: (ina3221) Check channel status for alarms attribute read There is nothing critically wrong to read these two attributes without having a is_enabled() check at this point. But reading the MASK_ENABLE register would clear the CVRF bit according to the datasheet. So it'd be safer to fence for disabled channels in order to add pm runtime feature. Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>