mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-27 06:04:32 +08:00
input/device: Don't destroy UHID device on disconnect
This makes classic HID behave like HoG which keeps the UHID device around while disconnected so it doesn't have to be recreated on every reconnection.
This commit is contained in:
parent
9698870015
commit
ee880bee85
@ -985,6 +985,10 @@ static int uhid_disconnect(struct input_device *idev)
|
||||
if (!idev->uhid_created)
|
||||
return 0;
|
||||
|
||||
/* Only destroy the node if virtual cable unplug flag has been set */
|
||||
if (!idev->virtual_cable_unplug)
|
||||
return 0;
|
||||
|
||||
bt_uhid_unregister_all(idev->uhid);
|
||||
|
||||
memset(&ev, 0, sizeof(ev));
|
||||
|
Loading…
Reference in New Issue
Block a user