Lines Matching refs:device_index
101 static int mcp320x_channel_to_tx_data(int device_index, in mcp320x_channel_to_tx_data() argument
106 switch (device_index) { in mcp320x_channel_to_tx_data()
123 bool differential, int device_index, int *val) in mcp320x_adc_conversion() argument
138 adc->tx_buf = mcp320x_channel_to_tx_data(device_index, channel, in mcp320x_adc_conversion()
145 switch (device_index) { in mcp320x_adc_conversion()
202 int device_index = 0; in mcp320x_read_raw() local
206 device_index = spi_get_device_id(adc->spi)->driver_data; in mcp320x_read_raw()
211 channel->differential, device_index, val); in mcp320x_read_raw()
381 int ret, device_index; in mcp320x_probe() local
397 device_index = spi_get_device_id(spi)->driver_data; in mcp320x_probe()
398 chip_info = &mcp320x_chip_infos[device_index]; in mcp320x_probe()
417 switch (device_index) { in mcp320x_probe()
439 mcp320x_adc_conversion(adc, 0, 1, device_index, &ret); in mcp320x_probe()
440 mcp320x_adc_conversion(adc, 0, 1, device_index, &ret); in mcp320x_probe()