Searched refs:iadc_write (Results 1 – 1 of 1) sorted by relevance
/Linux-v5.4/drivers/iio/adc/ |
D | qcom-spmi-iadc.c | 131 static int iadc_write(struct iadc_chip *iadc, u16 offset, u8 data) in iadc_write() function 141 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset() 149 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset() 155 return iadc_write(iadc, IADC_PERH_RESET_CTL3, data); in iadc_reset() 160 return iadc_write(iadc, IADC_EN_CTL1, state ? IADC_EN_CTL1_SET : 0); in iadc_set_state() 204 ret = iadc_write(iadc, IADC_MODE_CTL, mode); in iadc_configure() 209 ret = iadc_write(iadc, IADC_CH_SEL_CTL, channel); in iadc_configure() 215 ret = iadc_write(iadc, IADC_DIG_PARAM, decim); in iadc_configure() 220 ret = iadc_write(iadc, IADC_HW_SETTLE_DELAY, IADC_DEF_HW_SETTLE_TIME); in iadc_configure() 224 ret = iadc_write(iadc, IADC_FAST_AVG_CTL, IADC_DEF_AVG_SAMPLES); in iadc_configure() [all …]
|