iio: hid-sensors: convert HID_SENSOR_ENUM_BASE_QUIRKS to bool
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Mon, 22 Oct 2012 07:57:00 +0000 (08:57 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 17 Nov 2012 10:15:41 +0000 (10:15 +0000)
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>
drivers/iio/common/hid-sensors/Kconfig
drivers/iio/common/hid-sensors/hid-sensor-trigger.c

index 8e63d81d652a482478834a8a3cca371cbf64050e..ae10778da7aa1e7b1c11b558a562e998e78cfdcb 100644 (file)
@@ -15,7 +15,7 @@ config HID_SENSOR_IIO_COMMON
          attributes.
 
 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
        help
          Say yes here to build support for sensor hub FW using
index d4b790d18efb6e5c3b4d2a96aba5f5097fc243bb..d60198a6ca29a0ee6fa187fb6dbdbb2016df5ca3 100644 (file)
@@ -36,10 +36,8 @@ static int hid_sensor_data_rdy_trigger_set_state(struct iio_trigger *trig,
        int state_val;
 
        state_val = state ? 1 : 0;
-#if (defined CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS) || \
-       (defined CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS_MODULE)
-       ++state_val;
-#endif
+       if (IS_ENABLED(CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS))
+               ++state_val;
        st->data_ready = state;
        sensor_hub_set_feature(st->hsdev, st->power_state.report_id,
                                        st->power_state.index,