Daniel Baluta 356ae946f9 iio: dummy: Add virtual registers for dummy device
We need a way to store events generated by iio_dummy_evgen module,
in order to correctly process IRQs in iio_simple_dummy_events.

For the moment, we add two registers:

* id_reg  - ID register, stores the source of the event
* id_data - DATA register, stores the type of the event

e.g echo 4 > /sys/bus/iio/devices/iio_evgen/poke2

id_reg 0x02, id_data 0x04

This means, event of type 4 was generated by fake device 2.

We currently use a hardcoded mapping of virtual events to IIO events.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-11-22 11:05:44 +00:00
..
2014-10-20 10:30:15 +08:00
2014-10-08 17:37:16 -04:00
2014-09-22 16:48:47 +09:00
2014-10-15 07:23:49 +02:00
2014-10-07 21:29:18 -04:00
2014-10-15 06:58:16 +02:00
2014-11-02 14:45:52 -08:00
2014-10-31 18:48:29 -07:00
2014-10-21 08:17:43 -07:00
2014-10-08 17:37:16 -04:00
2014-10-29 09:24:42 -07:00
2014-10-15 07:23:49 +02:00