Cosmin Tanislav a1a5cfe70c iio: introduce mag_referenced
Some accelerometers that support activity and inactivity
events also support a referenced mode, in which the
gravitational acceleration is taken as a point of
reference before comparing the acceleration to the
specified activity and inactivity magnitude.

For example, in the case of the ADXL367, for activity
detection, the formula is:

abs(acceleration - reference) > magnitude

Add a new event type that makes this behavior clear.

Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Link: https://lore.kernel.org/r/20220214073810.781016-2-cosmin.tanislav@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-02-21 19:33:05 +00:00
..
2022-02-21 19:33:05 +00:00
2021-08-05 11:01:30 +01:00
2022-01-18 08:51:51 +02:00
2022-01-22 09:40:01 +02:00
2022-01-13 17:02:43 -05:00
2021-08-11 06:44:24 -04:00
2021-11-12 11:07:17 -08:00