diff options
author | Guenter Roeck <linux@roeck-us.net> | 2023-06-14 19:36:04 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-06-22 20:39:41 +0300 |
commit | 98ac8af4e7b2f260236cf468762450630e73eb67 (patch) | |
tree | 61a9dfe9165aceaffd53f51d6b426669d7fa5718 /drivers/hwmon/adm1031.c | |
parent | 37f665ffa886ce49d1baaca1c3501ce93713b77e (diff) | |
download | linux-98ac8af4e7b2f260236cf468762450630e73eb67.tar.xz |
hwmon: (pmbus/adm1275) Prepare for protected write to PMON_CONFIG
According to ADI, changing PMON_CONFIG while ADC is running can have
unexpected results. ADI recommends halting the ADC with PMON_CONTROL
before setting PMON_CONFIG and then resume after.
To prepare for this change, rename adm1275_read_pmon_config()
and adm1275_write_pmon_config() to adm1275_read_samples() and
adm1275_write_samples() to more accurately reflect the functionality
of the code. Introduce new function adm1275_write_pmon_config()
and use it for all code writing into the PMON_CONFIG register.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230614163605.3688964-2-linux@roeck-us.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/adm1031.c')
0 files changed, 0 insertions, 0 deletions