Home
last modified time | relevance | path

Searched refs:vadc (Results 1 – 3 of 3) sorted by relevance

/drivers/iio/adc/
Dqcom-spmi-vadc.c200 static int vadc_read(struct vadc_priv *vadc, u16 offset, u8 *data) in vadc_read() argument
202 return regmap_bulk_read(vadc->regmap, vadc->base + offset, data, 1); in vadc_read()
205 static int vadc_write(struct vadc_priv *vadc, u16 offset, u8 data) in vadc_write() argument
207 return regmap_write(vadc->regmap, vadc->base + offset, data); in vadc_write()
210 static int vadc_reset(struct vadc_priv *vadc) in vadc_reset() argument
215 ret = vadc_write(vadc, VADC_ACCESS, VADC_ACCESS_DATA); in vadc_reset()
219 ret = vadc_read(vadc, VADC_PERH_RESET_CTL3, &data); in vadc_reset()
223 ret = vadc_write(vadc, VADC_ACCESS, VADC_ACCESS_DATA); in vadc_reset()
229 return vadc_write(vadc, VADC_PERH_RESET_CTL3, data); in vadc_reset()
232 static int vadc_set_state(struct vadc_priv *vadc, bool state) in vadc_set_state() argument
[all …]
DMakefile41 obj-$(CONFIG_QCOM_SPMI_VADC) += qcom-spmi-vadc.o
DKconfig409 be called qcom-spmi-vadc.