summaryrefslogtreecommitdiff
path: root/include/linux/iio
diff options
context:
space:
mode:
authorIrina Tirdea <irina.tirdea@intel.com>2015-01-11 22:10:07 +0300
committerJonathan Cameron <jic23@kernel.org>2015-01-27 21:49:52 +0300
commit72c66644673a61ad85d293de7a61e54b9bdc9682 (patch)
tree2e597b50fb7922d8d8bd966b1fc50c29eb40d0e0 /include/linux/iio
parent9d9f780000e0a2c2582843ee83612530a16920c8 (diff)
downloadlinux-72c66644673a61ad85d293de7a61e54b9bdc9682.tar.xz
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/linux/iio')
-rw-r--r--include/linux/iio/types.h1
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 {