mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
9d9f780000
commit
72c6664467
3 changed files with 12 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ static const char * const iio_chan_type_name_spec[] = {
|
|||
[IIO_HUMIDITYRELATIVE] = "humidityrelative",
|
||||
[IIO_ACTIVITY] = "activity",
|
||||
[IIO_STEPS] = "steps",
|
||||
[IIO_ENERGY] = "energy",
|
||||
};
|
||||
|
||||
static const char * const iio_modifier_names[] = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue