input/hog: Remove HID device after HoG device disconnects
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 14 Jun 2019 15:31:25 +0000 (17:31 +0200)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:47 +0000 (14:27 +0530)
commita28d8b14865543a2cc4d7240eaf8cc9f4c97ea4b
tree1422783ec4b13f74bd4eef22d4f03a9de4958637
parent7316f2ac76ba232252324643836a6afc6ab58468
input/hog: Remove HID device after HoG device disconnects

When the Bluetooth LE device disconnects, make sure to also destroy the
uHID device so that we don't have a lingering HID device accessible from
user-space.

This also fixes the input subsystem never seeing the device reattaching,
causing settings that should be applied on connection not to be applied.

https://bugzilla.kernel.org/show_bug.cgi?id=202909

Tested-by: Bastien Nocera <hadess@hadess.net>
Change-Id: Idbc431d733c5bfba710b9d455e1dc564e2e3c302
Signed-off-by: himanshu <h.himanshu@samsung.com>
profiles/input/hog.c