Lines Matching full:channels
22 * @channels: filled with array of channels from iio
23 * @num_channels: number of channels in channels (saves counting twice)
29 struct iio_channel *channels; member
49 struct iio_channel *chan = &state->channels[sattr->index]; in iio_hwmon_read_val()
74 struct iio_channel *channels; in iio_hwmon_probe() local
78 channels = devm_iio_channel_get_all(dev); in iio_hwmon_probe()
79 if (IS_ERR(channels)) { in iio_hwmon_probe()
80 if (PTR_ERR(channels) == -ENODEV) in iio_hwmon_probe()
82 return PTR_ERR(channels); in iio_hwmon_probe()
89 st->channels = channels; in iio_hwmon_probe()
92 while (st->channels[st->num_channels].indio_dev) in iio_hwmon_probe()
110 ret = iio_get_channel_type(&st->channels[i], &type); in iio_hwmon_probe()