linux/drivers/iio
Bartosz Golaszewski 337cbeb2c1 genirq/irq_sim: Simplify the API
The interrupt simulator API exposes a lot of custom data structures and
functions and doesn't reuse the interfaces already exposed by the irq
subsystem. This patch tries to address it.

We hide all the simulator-related data structures from users and instead
rely on the well-known irq domain. When creating the interrupt simulator
the user receives a pointer to a newly created irq_domain and can use it
to create mappings for simulated interrupts.

It is also possible to pass a handle to fwnode when creating the simulator
domain and retrieve it using irq_find_matching_fwnode().

The irq_sim_fire() function is dropped as well. Instead we implement the
irq_get/set_irqchip_state interface.

We modify the two modules that use the simulator at the same time as
adding these changes in order to reduce the intermediate bloat that would
result when trying to migrate the drivers in separate patches.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for IIO
Link: https://lore.kernel.org/r/20200514083901.23445-3-brgl@bgdev.pl
2020-05-18 10:30:21 +01:00
..
accel chrome platform changes for 5.7 2020-04-08 21:25:49 -07:00
adc First set of IIO fixes for the 5.7 cycle. 2020-04-20 14:07:00 +02:00
afe
amplifiers iio: amplifiers: ad8366: add support for HMC1119 Attenuator 2020-03-08 17:28:43 +00:00
buffer iio: buffer: rename 'read_first_n' callback to 'read' 2019-12-29 15:20:09 +00:00
chemical Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
common First set of IIO fixes for the 5.7 cycle. 2020-04-20 14:07:00 +02:00
dac iio: dac: ad5770r: fix off-by-one check on maximum number of channels 2020-04-19 17:50:01 +01:00
dummy genirq/irq_sim: Simplify the API 2020-05-18 10:30:21 +01:00
frequency iio: adf4350: Convert to use GPIO descriptor 2019-12-15 11:42:16 +00:00
gyro iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
health
humidity iio: humidity: dht11 remove TODO since it doesn't make sense 2020-01-12 11:34:15 +00:00
imu iio: imu: inv_mpu6050: fix suspend/resume with runtime power 2020-04-19 17:50:02 +01:00
light chrome platform changes for 5.7 2020-04-08 21:25:49 -07:00
magnetometer iio: magnetometer: ak8974: Fix negative raw values in sysfs 2020-02-21 11:59:46 +00:00
multiplexer
orientation
position iio: position: Add support for Azoteq IQS624/625 angle sensors 2020-03-27 08:25:59 +00:00
potentiometer iio: potentiometer: add a driver for Maxim 5432-5435 2019-08-05 14:25:08 +01:00
potentiostat iio: potentiostat: lmp9100: fix iio_triggered_buffer_{predisable,postenable} positions 2020-03-08 17:28:53 +00:00
pressure chrome platform changes for 5.7 2020-04-08 21:25:49 -07:00
proximity Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
resolver iio: ad2s1200: Drop legacy include 2019-12-15 11:42:15 +00:00
temperature iio: temperature: Add support for Azoteq IQS620AT temperature sensor 2020-03-27 08:25:50 +00:00
trigger Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
iio_core_trigger.h
iio_core.h iio: buffer: rename 'read_first_n' callback to 'read' 2019-12-29 15:20:09 +00:00
industrialio-buffer.c Merge 5.5-rc7 into staging-next 2020-01-22 09:05:34 +01:00
industrialio-configfs.c
industrialio-core.c First set of IIO fixes for the 5.7 cycle. 2020-04-20 14:07:00 +02:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig iio: position: Add support for Azoteq IQS624/625 angle sensors 2020-03-27 08:25:59 +00:00
Makefile iio: position: Add support for Azoteq IQS624/625 angle sensors 2020-03-27 08:25:59 +00:00
TODO iio: add a TODO 2020-03-08 17:28:53 +00:00