diff options
author | Jiri Kosina <jkosina@suse.cz> | 2015-04-13 17:43:34 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-04-13 17:43:34 -0400 |
commit | 2e455c27bddbf8cf6d1039daea40de8e6865c453 (patch) | |
tree | 3fd892aeae61b105e3c5c979550aabf54109a656 /drivers/iio/light | |
parent | 05f6d02521d4c7a656c5135d6d81c345ce531ac0 (diff) | |
parent | b2eafd7282fdfd148fc09032540b0ff42bfedfbf (diff) |
Merge branch 'for-4.1/sensor-hub' into for-linus
Conflicts:
drivers/iio/common/hid-sensors/hid-sensor-trigger.c
include/linux/hid-sensor-hub.h
Diffstat (limited to 'drivers/iio/light')
-rw-r--r-- | drivers/iio/light/hid-sensor-als.c | 3 | ||||
-rw-r--r-- | drivers/iio/light/hid-sensor-prox.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c index 948acfc38b8c..1609ecdd01b0 100644 --- a/drivers/iio/light/hid-sensor-als.c +++ b/drivers/iio/light/hid-sensor-als.c | |||
@@ -101,7 +101,8 @@ static int als_read_raw(struct iio_dev *indio_dev, | |||
101 | *val = sensor_hub_input_attr_get_raw_value( | 101 | *val = sensor_hub_input_attr_get_raw_value( |
102 | als_state->common_attributes.hsdev, | 102 | als_state->common_attributes.hsdev, |
103 | HID_USAGE_SENSOR_ALS, address, | 103 | HID_USAGE_SENSOR_ALS, address, |
104 | report_id); | 104 | report_id, |
105 | SENSOR_HUB_SYNC); | ||
105 | hid_sensor_power_state(&als_state->common_attributes, | 106 | hid_sensor_power_state(&als_state->common_attributes, |
106 | false); | 107 | false); |
107 | } else { | 108 | } else { |
diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c index 3ecf79ed08ac..91ecc46ffeaa 100644 --- a/drivers/iio/light/hid-sensor-prox.c +++ b/drivers/iio/light/hid-sensor-prox.c | |||
@@ -96,7 +96,8 @@ static int prox_read_raw(struct iio_dev *indio_dev, | |||
96 | *val = sensor_hub_input_attr_get_raw_value( | 96 | *val = sensor_hub_input_attr_get_raw_value( |
97 | prox_state->common_attributes.hsdev, | 97 | prox_state->common_attributes.hsdev, |
98 | HID_USAGE_SENSOR_PROX, address, | 98 | HID_USAGE_SENSOR_PROX, address, |
99 | report_id); | 99 | report_id, |
100 | SENSOR_HUB_SYNC); | ||
100 | hid_sensor_power_state(&prox_state->common_attributes, | 101 | hid_sensor_power_state(&prox_state->common_attributes, |
101 | false); | 102 | false); |
102 | } else { | 103 | } else { |