diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-10-22 03:57:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-17 05:15:41 -0500 |
commit | 69bcd3bf40228239db91b075f56f9ba511f0bfe1 (patch) | |
tree | 94f4787f8302442a7cb3c9c03a633d5af606e52d /drivers/iio/common/hid-sensors | |
parent | acf1cf6a1c0966ef64a73083ca985605a12b032d (diff) |
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: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/common/hid-sensors')
-rw-r--r-- | drivers/iio/common/hid-sensors/Kconfig | 2 | ||||
-rw-r--r-- | drivers/iio/common/hid-sensors/hid-sensor-trigger.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/iio/common/hid-sensors/Kconfig b/drivers/iio/common/hid-sensors/Kconfig index 8e63d81d652a..ae10778da7aa 100644 --- a/drivers/iio/common/hid-sensors/Kconfig +++ b/drivers/iio/common/hid-sensors/Kconfig | |||
@@ -15,7 +15,7 @@ config HID_SENSOR_IIO_COMMON | |||
15 | attributes. | 15 | attributes. |
16 | 16 | ||
17 | config HID_SENSOR_ENUM_BASE_QUIRKS | 17 | config HID_SENSOR_ENUM_BASE_QUIRKS |
18 | tristate "ENUM base quirks for HID Sensor IIO drivers" | 18 | bool "ENUM base quirks for HID Sensor IIO drivers" |
19 | depends on HID_SENSOR_IIO_COMMON | 19 | depends on HID_SENSOR_IIO_COMMON |
20 | help | 20 | help |
21 | Say yes here to build support for sensor hub FW using | 21 | Say yes here to build support for sensor hub FW using |
diff --git a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c index d4b790d18efb..d60198a6ca29 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, |