Lines Matching refs:k
168 int k; in ads1015_remove() local
171 for (k = 0; k < ADS1015_CHANNELS; ++k) in ads1015_remove()
172 device_remove_file(&client->dev, &ads1015_in[k].dev_attr); in ads1015_remove()
236 unsigned int k; in ads1015_get_channels_config() local
253 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_get_channels_config()
254 data->channel_data[k].enabled = true; in ads1015_get_channels_config()
255 data->channel_data[k].pga = ADS1015_DEFAULT_PGA; in ads1015_get_channels_config()
256 data->channel_data[k].data_rate = ADS1015_DEFAULT_DATA_RATE; in ads1015_get_channels_config()
265 unsigned int k; in ads1015_probe() local
277 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_probe()
278 if (!data->channel_data[k].enabled) in ads1015_probe()
280 err = device_create_file(&client->dev, &ads1015_in[k].dev_attr); in ads1015_probe()
294 for (k = 0; k < ADS1015_CHANNELS; ++k) in ads1015_probe()
295 device_remove_file(&client->dev, &ads1015_in[k].dev_attr); in ads1015_probe()