You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
iio: Add channels for LSM6DSR sensor HUB
Add new channels types support for LSM6DSR sensor HUB: * IIO_SIGN_MOTION * IIO_STEP_DETECTOR * IIO_STEP_COUNTER * IIO_TILT * IIO_TAP * IIO_TAP_TAP * IIO_WRIST_TILT_GESTURE * IIO_GESTURE Signed-off-by: Jason Zhang <jason.zhang@rock-chips.com> Change-Id: I8f3f2feae32b94ad6802a9a359ec11ab94a96816
This commit is contained in:
@@ -87,6 +87,16 @@ static const char * const iio_chan_type_name_spec[] = {
|
||||
[IIO_POSITIONRELATIVE] = "positionrelative",
|
||||
[IIO_PHASE] = "phase",
|
||||
[IIO_MASSCONCENTRATION] = "massconcentration",
|
||||
#ifdef CONFIG_NO_GKI
|
||||
[IIO_SIGN_MOTION] = "signmotion",
|
||||
[IIO_STEP_DETECTOR] = "stepdetector",
|
||||
[IIO_STEP_COUNTER] = "stepcounter",
|
||||
[IIO_TILT] = "tilt",
|
||||
[IIO_TAP] = "tap",
|
||||
[IIO_TAP_TAP] = "taptap",
|
||||
[IIO_WRIST_TILT_GESTURE] = "wristtiltgesture",
|
||||
[IIO_GESTURE] = "gesture",
|
||||
#endif
|
||||
};
|
||||
|
||||
static const char * const iio_modifier_names[] = {
|
||||
|
||||
@@ -47,6 +47,16 @@ enum iio_chan_type {
|
||||
IIO_POSITIONRELATIVE,
|
||||
IIO_PHASE,
|
||||
IIO_MASSCONCENTRATION,
|
||||
#ifdef CONFIG_NO_GKI
|
||||
IIO_SIGN_MOTION,
|
||||
IIO_STEP_DETECTOR,
|
||||
IIO_STEP_COUNTER,
|
||||
IIO_TILT,
|
||||
IIO_TAP,
|
||||
IIO_TAP_TAP,
|
||||
IIO_WRIST_TILT_GESTURE,
|
||||
IIO_GESTURE,
|
||||
#endif
|
||||
};
|
||||
|
||||
enum iio_modifier {
|
||||
|
||||
@@ -58,6 +58,16 @@ static const char * const iio_chan_type_name_spec[] = {
|
||||
[IIO_POSITIONRELATIVE] = "positionrelative",
|
||||
[IIO_PHASE] = "phase",
|
||||
[IIO_MASSCONCENTRATION] = "massconcentration",
|
||||
#ifdef CONFIG_NO_GKI
|
||||
[IIO_SIGN_MOTION] = "signmotion",
|
||||
[IIO_STEP_DETECTOR] = "stepdetector",
|
||||
[IIO_STEP_COUNTER] = "stepcounter",
|
||||
[IIO_TILT] = "tilt",
|
||||
[IIO_TAP] = "tap",
|
||||
[IIO_TAP_TAP] = "taptap",
|
||||
[IIO_WRIST_TILT_GESTURE] = "wristtiltgesture",
|
||||
[IIO_GESTURE] = "gesture",
|
||||
#endif
|
||||
};
|
||||
|
||||
static const char * const iio_ev_type_text[] = {
|
||||
|
||||
Reference in New Issue
Block a user