iio: dummy: Demonstrate the usage of new channel types
authorDaniel Baluta <daniel.baluta@intel.com>
Mon, 10 Nov 2014 12:45:34 +0000 (14:45 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 22 Nov 2014 11:15:04 +0000 (11:15 +0000)
commit3e34e650db19708b1c27421e8d3d749a09adbb0c
treebb78aca153f7d02dd08f291ce04f5a16a3e49c19
parentbcdf28fb1b8badf3cdba18d349f6251057e36a45
iio: dummy: Demonstrate the usage of new channel types

Adds support for the new channel types in the dummy driver:
  * a new channel IIO_ACTIVITY
  * two state transition events (running and walking)
  * a new channel IIO_STEPS and support for reading and writing
    pedometer step counter
  * step detect event
  * a new IIO_CHAN_INFO_CALIBHEIGHT mask bit for reading and writing
    user's height.

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>
drivers/staging/iio/iio_simple_dummy.c
drivers/staging/iio/iio_simple_dummy.h
drivers/staging/iio/iio_simple_dummy_events.c