diff options
| author | Nicolin Chen <[email protected]> | 2018-11-05 12:48:40 -0800 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2018-12-16 15:13:11 -0800 |
| commit | efb0489ea8fa12c6a5b51c0b3e35f4f3d5d54939 (patch) | |
| tree | 6e7da4f369e6f637bc5ef29f3725fa3222cb67f3 /tools/perf/scripts/python/export-to-postgresql.py | |
| 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 <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions