Searched refs:iadc_write (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/iio/adc/ |
H A D | qcom-spmi-iadc.c | 139 static int iadc_write(struct iadc_chip *iadc, u16 offset, u8 data) iadc_write() function 149 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); iadc_reset() 157 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); iadc_reset() 163 return iadc_write(iadc, IADC_PERH_RESET_CTL3, data); iadc_reset() 168 return iadc_write(iadc, IADC_EN_CTL1, state ? IADC_EN_CTL1_SET : 0); iadc_set_state() 212 ret = iadc_write(iadc, IADC_MODE_CTL, mode); iadc_configure() 217 ret = iadc_write(iadc, IADC_CH_SEL_CTL, channel); iadc_configure() 223 ret = iadc_write(iadc, IADC_DIG_PARAM, decim); iadc_configure() 228 ret = iadc_write(iadc, IADC_HW_SETTLE_DELAY, IADC_DEF_HW_SETTLE_TIME); iadc_configure() 232 ret = iadc_write(iadc, IADC_FAST_AVG_CTL, IADC_DEF_AVG_SAMPLES); iadc_configure() 237 ret = iadc_write(iadc, IADC_FAST_AVG_EN, IADC_FAST_AVG_EN_SET); iadc_configure() 239 ret = iadc_write(iadc, IADC_FAST_AVG_EN, 0); iadc_configure() 252 return iadc_write(iadc, IADC_CONV_REQ, IADC_CONV_REQ_SET); iadc_configure()
|
Completed in 197 milliseconds