aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/common/hid-sensors/hid-sensor-trigger.c')
-rw-r--r--drivers/iio/common/hid-sensors/hid-sensor-trigger.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
index d4b790d18ef..d60198a6ca2 100644
--- a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
+++ b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c
@@ -36,10 +36,8 @@ static int hid_sensor_data_rdy_trigger_set_state(struct iio_trigger *trig,
36 int state_val; 36 int state_val;
37 37
38 state_val = state ? 1 : 0; 38 state_val = state ? 1 : 0;
39#if (defined CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS) || \ 39 if (IS_ENABLED(CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS))
40 (defined CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS_MODULE) 40 ++state_val;
41 ++state_val;
42#endif
43 st->data_ready = state; 41 st->data_ready = state;
44 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, 42 sensor_hub_set_feature(st->hsdev, st->power_state.report_id,
45 st->power_state.index, 43 st->power_state.index,