quad8iio         1150 drivers/counter/104-quad-8.c static void quad8_preset_register_set(struct quad8_iio *quad8iio, int id,
quad8iio         1153 drivers/counter/104-quad-8.c 	const unsigned int base_offset = quad8iio->base + 2 * id;
quad8iio         1156 drivers/counter/104-quad-8.c 	quad8iio->preset[id] = preset;
quad8iio         1410 drivers/counter/104-quad-8.c 	struct quad8_iio *quad8iio;
quad8iio         1422 drivers/counter/104-quad-8.c 	indio_dev = devm_iio_device_alloc(dev, sizeof(*quad8iio));
quad8iio         1435 drivers/counter/104-quad-8.c 	quad8iio = iio_priv(indio_dev);
quad8iio         1436 drivers/counter/104-quad-8.c 	quad8iio->counter.name = dev_name(dev);
quad8iio         1437 drivers/counter/104-quad-8.c 	quad8iio->counter.parent = dev;
quad8iio         1438 drivers/counter/104-quad-8.c 	quad8iio->counter.ops = &quad8_ops;
quad8iio         1439 drivers/counter/104-quad-8.c 	quad8iio->counter.counts = quad8_counts;
quad8iio         1440 drivers/counter/104-quad-8.c 	quad8iio->counter.num_counts = ARRAY_SIZE(quad8_counts);
quad8iio         1441 drivers/counter/104-quad-8.c 	quad8iio->counter.signals = quad8_signals;
quad8iio         1442 drivers/counter/104-quad-8.c 	quad8iio->counter.num_signals = ARRAY_SIZE(quad8_signals);
quad8iio         1443 drivers/counter/104-quad-8.c 	quad8iio->counter.priv = quad8iio;
quad8iio         1444 drivers/counter/104-quad-8.c 	quad8iio->base = base[id];
quad8iio         1447 drivers/counter/104-quad-8.c 	mutex_init(&quad8iio->lock);
quad8iio         1479 drivers/counter/104-quad-8.c 	return devm_counter_register(dev, &quad8iio->counter);