Commit graph

7 commits

Author SHA1 Message Date
Arian
53191f2811 sm8450-common: sensors: Convert nonui notifier into a generalized sensor based notifier
Change-Id: I34b9861341f4f033185fdbd066b46d779dd95cfa
2024-08-12 10:24:04 +02:00
Arian
70f137270c sm8450-common: sensors: Close touch dev fd after usage
Change-Id: Iad20a110444e87fb6ea37147bd2dc5928ca0ec8d
2024-08-01 01:08:48 +02:00
Arian
66b47cfe82 sm8450-common: Use kernel provided xiaomi_touch.h
Change-Id: Ib235946a1233b4965fc4a90c9b2b01b7644775e9
2024-08-01 01:08:48 +02:00
Arian
b6069026da sm8450-common: sensors: Pass nonui value unmodified to touchscreen
* report the scalar directly, 1 probably means pocket and 2 means it's covered.
  this led to us disabling nonui mode again when covered was reported after pocket.

Change-Id: Idbf7fdf773657d87407dd4b67a7353c17b4ae799
2024-08-01 01:08:48 +02:00
Arian
26737a0758 sm8450-common: sensors: Use wake-up version of nonui sensor
Change-Id: I4858cd37b98839c00cc2e533d7e50720cd7280c8
2024-08-01 01:08:48 +02:00
Arian
727d6834e5 sm8450-common: sensors: Cleanup code and drop unused dependencies
Change-Id: I553fb6f441cde1d3a5c4b19e42e3bd696a92bbd3
2024-08-01 01:08:48 +02:00
Arian
c9aa23766e sm8450-common: Add nonui notifier
Change-Id: Id447dec0d6c6a384a55a25db45f2d763ba23635a
2024-06-09 11:07:59 +02:00