Searched refs:iadc_write (Results 1 – 1 of 1) sorted by relevance
/drivers/iio/adc/ |
D | qcom-spmi-iadc.c | 139 static int iadc_write(struct iadc_chip *iadc, u16 offset, u8 data) in iadc_write() function 149 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset() 157 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset() 163 return iadc_write(iadc, IADC_PERH_RESET_CTL3, data); in iadc_reset() 168 return iadc_write(iadc, IADC_EN_CTL1, state ? IADC_EN_CTL1_SET : 0); in iadc_set_state() 212 ret = iadc_write(iadc, IADC_MODE_CTL, mode); in iadc_configure() 217 ret = iadc_write(iadc, IADC_CH_SEL_CTL, channel); in iadc_configure() 223 ret = iadc_write(iadc, IADC_DIG_PARAM, decim); in iadc_configure() 228 ret = iadc_write(iadc, IADC_HW_SETTLE_DELAY, IADC_DEF_HW_SETTLE_TIME); in iadc_configure() 232 ret = iadc_write(iadc, IADC_FAST_AVG_CTL, IADC_DEF_AVG_SAMPLES); in iadc_configure() [all …]
|