Home
last modified time | relevance | path

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

/linux/drivers/iio/adc/
H A Dqcom-pm8xxx-xoadc.c381 const struct xoadc_channel *hwchan; member
432 if (ch->hwchan->amux_channel == chan) in pm8xxx_get_channel()
449 ch->name, ch->hwchan->amux_channel, ch->hwchan->pre_scale_mux, rsv); in pm8xxx_read_channel_rsv()
454 val = ch->hwchan->amux_channel << ADC_AMUX_SEL_SHIFT; in pm8xxx_read_channel_rsv()
455 val |= ch->hwchan->pre_scale_mux << ADC_AMUX_PREMUX_SHIFT; in pm8xxx_read_channel_rsv()
480 if (ch->hwchan->amux_channel == PM8XXX_CHANNEL_MUXOFF) in pm8xxx_read_channel_rsv()
669 ret = qcom_vadc_scale(ch->hwchan->scale_fn_type, in pm8xxx_read_raw()
671 &ch->hwchan->prescale, in pm8xxx_read_raw()
721 if (adc->chans[i].hwchan->pre_scale_mux == pre_scale_mux && in pm8xxx_fwnode_xlate()
722 adc->chans[i].hwchan->amux_channel == amux_channel) in pm8xxx_fwnode_xlate()
[all …]