commit | 5eae59cc876c8c1043d3eb55a2e965bb36e90bba | [log] [tgz] |
---|---|---|
author | Ian Abbott <abbotti@mev.co.uk> | Fri Sep 04 14:21:43 2020 +0100 |
committer | Jiri Kosina <jkosina@suse.cz> | Mon Sep 07 16:03:51 2020 +0200 |
tree | 1684c1a18253b7581549f283a86f566ca375ede1 | |
parent | aeeba45a9df34a00113f96f9f52c45e250ff7b7d [diff] |
HID: wiimote: narrow spinlock range in wiimote_hid_event() In `wiimote_hid_event()`, the `wdata->state.lock` spinlock does not need to be held while searching `handlers[]` for a suitable handler function. Change it so the spinlock is only held during the call to the handler function itself. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: David Rheinsberg <david.rheinsberg@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>