diff options
author | Roy van Doormaal <roy.van.doormaal@prodrive-technologies.com> | 2020-07-28 17:18:45 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2020-08-04 14:28:03 -0700 |
commit | e2f75e6b5d766195d2ca584d92995a0dfe467fc7 (patch) | |
tree | c33318eda7d8f8d417ea38785c2a720283fe96fc /MAINTAINERS | |
parent | dfddc57c9971b213214cada1dcf26ef27f419b5c (diff) |
hwmon: (adc128d818) Fix advanced configuration register init
If the operation mode is non-zero and an external reference voltage is set,
first the operation mode is written to the advanced configuration register,
followed by the externel reference enable bit,
resetting the configuration mode to 0.
To fix this, first compose the value of the advanced configuration register
based on the configuration mode and the external reference voltage.
The advanced configuration register is then written to the device,
if it is different from the default register value (0x0).
Signed-off-by: Roy van Doormaal <roy.van.doormaal@prodrive-technologies.com>
Link: https://lore.kernel.org/r/20200728151846.231785-1-roy.van.doormaal@prodrive-technologies.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions