Searched refs:chan_array (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/drivers/iio/adc/ |
D | rzg2l_adc.c | 304 struct iio_chan_spec *chan_array; in rzg2l_adc_parse_properties() local 327 chan_array = devm_kcalloc(&pdev->dev, num_channels, sizeof(*chan_array), in rzg2l_adc_parse_properties() 329 if (!chan_array) in rzg2l_adc_parse_properties() 345 chan_array[i].type = IIO_VOLTAGE; in rzg2l_adc_parse_properties() 346 chan_array[i].indexed = 1; in rzg2l_adc_parse_properties() 347 chan_array[i].channel = channel; in rzg2l_adc_parse_properties() 348 chan_array[i].info_mask_separate = BIT(IIO_CHAN_INFO_RAW); in rzg2l_adc_parse_properties() 349 chan_array[i].datasheet_name = rzg2l_adc_channel_name[channel]; in rzg2l_adc_parse_properties() 354 data->channels = chan_array; in rzg2l_adc_parse_properties()
|
D | cc10001_adc.c | 268 struct iio_chan_spec *chan_array, *timestamp; in cc10001_adc_channel_init() local 274 chan_array = devm_kcalloc(&indio_dev->dev, indio_dev->num_channels, in cc10001_adc_channel_init() 277 if (!chan_array) in cc10001_adc_channel_init() 281 struct iio_chan_spec *chan = &chan_array[idx]; in cc10001_adc_channel_init() 295 timestamp = &chan_array[idx]; in cc10001_adc_channel_init() 303 indio_dev->channels = chan_array; in cc10001_adc_channel_init()
|
D | ti_am335x_adc.c | 402 struct iio_chan_spec *chan_array; in tiadc_channel_init() local 407 chan_array = devm_kcalloc(dev, channels, sizeof(*chan_array), in tiadc_channel_init() 409 if (!chan_array) in tiadc_channel_init() 412 chan = chan_array; in tiadc_channel_init() 426 indio_dev->channels = chan_array; in tiadc_channel_init()
|
D | at91_adc.c | 488 struct iio_chan_spec *chan_array, *timestamp; in at91_adc_channel_init() local 504 chan_array = devm_kzalloc(&idev->dev, in at91_adc_channel_init() 509 if (!chan_array) in at91_adc_channel_init() 513 struct iio_chan_spec *chan = chan_array + idx; in at91_adc_channel_init() 526 timestamp = chan_array + idx; in at91_adc_channel_init() 535 idev->channels = chan_array; in at91_adc_channel_init()
|