Commit 69bcd3bf authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Jonathan Cameron

iio: hid-sensors: convert HID_SENSOR_ENUM_BASE_QUIRKS to bool

It's non-sense to use tristate for the option, it's bool.
Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent acf1cf6a
...@@ -15,7 +15,7 @@ config HID_SENSOR_IIO_COMMON ...@@ -15,7 +15,7 @@ config HID_SENSOR_IIO_COMMON
attributes. attributes.
config HID_SENSOR_ENUM_BASE_QUIRKS config HID_SENSOR_ENUM_BASE_QUIRKS
tristate "ENUM base quirks for HID Sensor IIO drivers" bool "ENUM base quirks for HID Sensor IIO drivers"
depends on HID_SENSOR_IIO_COMMON depends on HID_SENSOR_IIO_COMMON
help help
Say yes here to build support for sensor hub FW using Say yes here to build support for sensor hub FW using
......
...@@ -36,10 +36,8 @@ static int hid_sensor_data_rdy_trigger_set_state(struct iio_trigger *trig, ...@@ -36,10 +36,8 @@ static int hid_sensor_data_rdy_trigger_set_state(struct iio_trigger *trig,
int state_val; int state_val;
state_val = state ? 1 : 0; state_val = state ? 1 : 0;
#if (defined CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS) || \ if (IS_ENABLED(CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS))
(defined CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS_MODULE) ++state_val;
++state_val;
#endif
st->data_ready = state; st->data_ready = state;
sensor_hub_set_feature(st->hsdev, st->power_state.report_id, sensor_hub_set_feature(st->hsdev, st->power_state.report_id,
st->power_state.index, st->power_state.index,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment