Lines Matching refs:nchans
246 unsigned int nchans; member
260 for (i = 0; i < gpadc->nchans; i++) { in ab8500_gpadc_get_channel()
265 if (i == gpadc->nchans) in ab8500_gpadc_get_channel()
1033 unsigned int nchans; in ab8500_gpadc_parse_channels() local
1036 nchans = device_get_child_node_count(gpadc->dev); in ab8500_gpadc_parse_channels()
1037 if (!nchans) { in ab8500_gpadc_parse_channels()
1041 dev_info(gpadc->dev, "found %d ADC channels\n", nchans); in ab8500_gpadc_parse_channels()
1043 iio_chans = devm_kcalloc(gpadc->dev, nchans, in ab8500_gpadc_parse_channels()
1048 gpadc->chans = devm_kcalloc(gpadc->dev, nchans, in ab8500_gpadc_parse_channels()
1068 gpadc->nchans = nchans; in ab8500_gpadc_parse_channels()
1070 *nchans_parsed = nchans; in ab8500_gpadc_parse_channels()