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. The first patch of the series cleans up the code to prepare for the functional change. The second patch implements stopping the ADC while writing into PMON_CONFIG. This series depends on patch 'hwmon: (pmbus/adm1275) Fix problems with temperature monitoring on ADM1272' submitted earlier at https://patchwork.kernel.org/project/linux-hwmon/patch/20230602213447.3557346-1-linux@xxxxxxxxxxxx/