]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - Fix device hierarchy
authorLoic Poulain <loic.poulain@linaro.org>
Fri, 29 Oct 2021 13:42:51 +0000 (15:42 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 6 Nov 2021 02:46:21 +0000 (19:46 -0700)
commit0c812bd3fdf6964b4aed1c96dca85c1f196dc010
tree8f3325fb1e9bc92b397649b53f8a697d68f37805
parent2e8c93b7afa542484b79fe844b0918a43acd6d31
Input: synaptics-rmi4 - Fix device hierarchy

The created rmi device is orphan, which breaks the real device
hierarchy, and can cause some trouble, especially during suspend
and resume sequences. E.g. in case of I2C, rmi dev should be child
of the I2C client device.

Fix this, assigning the transport device as parent of the rmi device.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1635514971-18415-1-git-send-email-loic.poulain@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_bus.c