Commit Graph

2 Commits

Author SHA1 Message Date
Carlos Ayrton Lopez Arroyo
7e1592cdae
sm8250-common: power: Scan available DT2W devices for xiaomi-sm8250
Preserve the previous input devices defined and define the screen drivers
present on the xiaomi-sm8250 kernel in order to be scanned depending on the
device that is running (tested on lmi/lmipro).

Change-Id: I8e9410ee0c1b70d8d84ea4c711d0947f4163f4d4
2021-02-20 17:25:13 +01:00
Bruno Martins
5f1b8d41b5
sm8250-common: Import power AIDL extension for DT2W
This is a squash of the following commits:

	From: Bruno Martins <bgcngm@gmail.com>
	Date: Fri, 31 Jan 2020 23:10:19 +0000
	Subject: sm8250-common: power: Scan input devices for eligible DT2W node

		It is no longer a surprise for anyone to see Xiaomi shipping the same
		device with different displays and different displays usually mean
		different touchscreen drivers.

		The current double tap handling in the power HAL only takes into
		account one specific node, meant to be set in the device tree.
		However, if the touchscreen was registered as a different input device
		it would cause the feature to be broken. Address the issue by iterating
		through the input devices in order to find one supported touchscreen
		input to be used.

		Co-authored-by: LuK1337 <priv.luk@gmail.com>
		Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170

	From: Bruno Martins <bgcngm@gmail.com>
	Date: Fri, 9 Oct 2020 12:19:37 +0100
	Subject: sm8250-common: power: Adapt extension to new aidl power HAL

		Change-Id: I58ac49957d8d28ad904912986d89ac8db4820ff9

Change-Id: If30eaca900f0a046f7740c681e8707b5dce8e1a9
2021-02-20 01:34:26 +01:00