Change dt-gesture sensor to SPECIAL_REPORTING mode

dt-gesture sensor was previously an ON_CHANGE sensor. This is
generally okay, but it can lead to the Sensor Service sending out
an old event to a new (second, third, etc..) client if there was
already a previous client registered for the sensor, and this is
not the behavior that is desired.

Change-Id: I3bc91c5271fedc83b11ee5028980cfea99dd6732
Reviewed-on: https://gerrit.mot.com/1484754
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
John Ratke 2020-01-16 15:25:32 -06:00
commit 400ae84eb1
5 changed files with 10 additions and 8 deletions

View file

@ -113,8 +113,8 @@ static struct sensors_classdev __maybe_unused sensors_touch_cdev = {
.sensor_power = "1",
.min_delay = 0,
.max_delay = 0,
/* WAKE_UP & ON_CHANGE */
.flags = 1 | 2,
/* WAKE_UP & SPECIAL_REPORT */
.flags = 1 | 6,
.fifo_reserved_event_count = 0,
.fifo_max_event_count = 0,
.enabled = 0,

View file

@ -57,6 +57,8 @@ static struct sensors_classdev __maybe_unused sensors_touch_cdev = {
.sensor_power = "1",
.min_delay = -1,
.max_delay = 0,
/* WAKE_UP & SPECIAL_REPORT */
.flags = 1 | 6,
.fifo_reserved_event_count = 0,
.fifo_max_event_count = 0,
.enabled = 0,

View file

@ -74,8 +74,8 @@ static struct sensors_classdev __maybe_unused sensors_touch_cdev = {
.sensor_power = "1",
.min_delay = 0,
.max_delay = 0,
/* WAKE_UP & ON_CHANGE */
.flags = 1 | 2,
/* WAKE_UP & SPECIAL_REPORT */
.flags = 1 | 6,
.fifo_reserved_event_count = 0,
.fifo_max_event_count = 0,
.enabled = 0,

View file

@ -66,8 +66,8 @@ static struct sensors_classdev __maybe_unused sensors_touch_cdev = {
.sensor_power = "1",
.min_delay = 0,
.max_delay = 0,
/* WAKE_UP & ON_CHANGE */
.flags = 1 | 2,
/* WAKE_UP & SPECIAL_REPORT */
.flags = 1 | 6,
.fifo_reserved_event_count = 0,
.fifo_max_event_count = 0,
.enabled = 0,

View file

@ -88,8 +88,8 @@ static struct sensors_classdev __maybe_unused sensors_touch_cdev = {
.sensor_power = "1",
.min_delay = 0,
.max_delay = 0,
/* WAKE_UP & ON_CHANGE */
.flags = 1 | 2,
/* WAKE_UP & SPECIAL_REPORT */
.flags = 1 | 6,
.fifo_reserved_event_count = 0,
.fifo_max_event_count = 0,
.enabled = 0,