diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2015-01-11 20:10:07 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-01-27 19:49:52 +0100 |
commit | 72c66644673a61ad85d293de7a61e54b9bdc9682 (patch) | |
tree | 2e597b50fb7922d8d8bd966b1fc50c29eb40d0e0 /include | |
parent | iio: as3935: Switch to PM ops (diff) | |
download | linux-72c66644673a61ad85d293de7a61e54b9bdc9682.tar.xz linux-72c66644673a61ad85d293de7a61e54b9bdc9682.zip |
iio: core: Introduce ENERGY channel type
Human activity sensors report the energy burnt by the user.
One of this devices is Freescale's MMA9553L
(http://www.freescale.com/files/sensors/doc/ref_manual/MMA9553LSWRM.pdf)
that computes the number of calories based on weight and step rate.
Introduce a new channel type ENERGY to export these values.
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/iio/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h index 904dcbbf0e6f..26b8a1c5e2af 100644 --- a/include/linux/iio/types.h +++ b/include/linux/iio/types.h @@ -32,6 +32,7 @@ enum iio_chan_type { IIO_HUMIDITYRELATIVE, IIO_ACTIVITY, IIO_STEPS, + IIO_ENERGY, }; enum iio_modifier { |