staging:iio:accel:sca3000 use a 'fake' channel to handle freefall event registration.
authorJonathan Cameron <jic23@kernel.org>
Sat, 8 Oct 2016 16:39:08 +0000 (17:39 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:01 +0000 (19:34 +0100)
commit45ae5561acf52e82c838ba997dca5afc53ff1b61
treed5c56fd35b488145df044776f75d704fca69f1be
parent2600e12b8ba677f78da745adbe601f411ba43d4a
staging:iio:accel:sca3000 use a 'fake' channel to handle freefall event registration.

This is an approach used in some newer drivers as it exposes the
compound channel events to the core rather than hiding their control
in sysfs attributes entirely via the driver.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/staging/iio/accel/sca3000.c