Searched refs:iadc_write (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/adc/ |
H A D | qcom-spmi-iadc.c | 130 static int iadc_write(struct iadc_chip *iadc, u16 offset, u8 data) in iadc_write() function 140 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset() 148 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset() 154 return iadc_write(iadc, IADC_PERH_RESET_CTL3, data); in iadc_reset() 203 ret = iadc_write(iadc, IADC_MODE_CTL, mode); in iadc_configure() 208 ret = iadc_write(iadc, IADC_CH_SEL_CTL, channel); in iadc_configure() 214 ret = iadc_write(iadc, IADC_DIG_PARAM, decim); in iadc_configure() 223 ret = iadc_write(iadc, IADC_FAST_AVG_CTL, IADC_DEF_AVG_SAMPLES); in iadc_configure() 228 ret = iadc_write(iadc, IADC_FAST_AVG_EN, IADC_FAST_AVG_EN_SET); in iadc_configure() 230 ret = iadc_write(iadc, IADC_FAST_AVG_EN, 0); in iadc_configure() [all …]
|