Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/iio/adc/
Dqcom-pm8xxx-xoadc.c382 const struct xoadc_channel *hwchan; member
433 if (ch->hwchan->amux_channel == chan) in pm8xxx_get_channel()
450 ch->name, ch->hwchan->amux_channel, ch->hwchan->pre_scale_mux, rsv); in pm8xxx_read_channel_rsv()
455 val = ch->hwchan->amux_channel << ADC_AMUX_SEL_SHIFT; in pm8xxx_read_channel_rsv()
456 val |= ch->hwchan->pre_scale_mux << ADC_AMUX_PREMUX_SHIFT; in pm8xxx_read_channel_rsv()
481 if (ch->hwchan->amux_channel == PM8XXX_CHANNEL_MUXOFF) in pm8xxx_read_channel_rsv()
670 ret = qcom_vadc_scale(ch->hwchan->scale_fn_type, in pm8xxx_read_raw()
672 &ch->hwchan->prescale, in pm8xxx_read_raw()
722 if (adc->chans[i].hwchan->pre_scale_mux == pre_scale_mux && in pm8xxx_fwnode_xlate()
723 adc->chans[i].hwchan->amux_channel == amux_channel) in pm8xxx_fwnode_xlate()
[all …]