diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-06-07 10:23:20 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-06-23 18:33:01 -0700 |
commit | f5b20b11bbc230f64c099b12c37121aacf6f0b65 (patch) | |
tree | 7552bf9f1b55b5daf221535b05437de6c77b4a59 /certs | |
parent | bf8c9edaa5c61999ed06c001d87c9a0c86cd0bf8 (diff) | |
download | linux-stable-f5b20b11bbc230f64c099b12c37121aacf6f0b65.tar.gz linux-stable-f5b20b11bbc230f64c099b12c37121aacf6f0b65.tar.bz2 linux-stable-f5b20b11bbc230f64c099b12c37121aacf6f0b65.zip |
hwmon: (max6650) Cache alarm_en register
The alarm_en register is read each time the is_visible function is called.
Since it is a configuration register, this is completely unnecessary.
Read it once and cache its value.
Cc: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions