diff options
author | Sandeep Patil <sspatil@google.com> | 2020-03-18 23:15:23 -0700 |
---|---|---|
committer | Sandeep Patil <sspatil@google.com> | 2020-03-23 19:24:14 -0700 |
commit | 5be38a5b22205467dd0435d24df75a6e19975cba (patch) | |
tree | ed8dc02332624ab1e7e1a8acb555e25821207351 | |
parent | eeb66830c1b9392097aa615bb60b7013c47a2140 (diff) | |
download | fts_touch-5be38a5b22205467dd0435d24df75a6e19975cba.tar.gz |
GKI: ANDROID: Fix drivers for wakeup_source_register prototype change
The wakeup_source_register() is the only function all wakeup sources must
be initiated with starting now. This allows for all wakeup sources to now
show up in /sys/class/wakeup/ for userspace to read.
This change fixes all current usage of wakeup_source_register() to also add
a possible 'struct device' parameter associated with it or use NULL when it
doesn't exist.
Bug: 129087298
Bug: 151789966
Test: Launch Camera + Take Picture / Record Video
Test: Connect to Wifi Network
Test: Play Youtube Video
Test: USB debugging works
Test: Touchscreen / multi touch works
Test: Audio playback
Test: Battery percentage and power supplies work.
Signed-off-by: Sandeep Patil <sspatil@google.com>
Change-Id: Ieeead1011f443bb825ff8375a2bf3864eb4f029e
-rw-r--r-- | fts.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5569,7 +5569,7 @@ static int fts_probe(struct spi_device *client) pr_info("SET Event Handler:\n"); - info->wakesrc = wakeup_source_register("fts_tp"); + info->wakesrc = wakeup_source_register(NULL, "fts_tp"); if (!info->wakesrc) { pr_err("%s: failed to register wakeup source\n", __func__); error = -ENODEV; |