commit | 521c0b6116ef60e4b96ba42dbf285b2ad69071d4 | [log] [tgz] |
---|---|---|
author | Nicolin Chen <nicoleotsuka@gmail.com> | Wed Apr 17 16:12:09 2019 -0700 |
committer | Guenter Roeck <linux@roeck-us.net> | Thu Apr 18 06:37:25 2019 -0700 |
tree | 5531a43aec4f8fe58c96764af8761bcdd84096ec | |
parent | 7ebd8b66dd9e5a0b65e5ee5e2b8e7ca382ec97b7 [diff] |
hwmon: (ina3221) Do not read-back to cache reg_config Reading back the CONFIG register increases an extra I2C transaction. This's not necessary and could be replaced with a local variable caching the register settings. So this patch replaces two readback regmap_read() calls with a tmp variable. Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>