HID: hid-steam: Make client_opened a counter
authorVicki Pfau <vi@endrift.com>
Wed, 20 Dec 2023 03:38:34 +0000 (19:38 -0800)
committerJiri Kosina <jkosina@suse.com>
Tue, 2 Jan 2024 10:20:42 +0000 (11:20 +0100)
commit555b818adb97eca70210a49ba3f1d27882dde092
tree7ba5c8c218b12a5dd864936447d5f269f140e55a
parent691ead124a0c35e56633dbb73e43711ff3db23ef
HID: hid-steam: Make client_opened a counter

The client_opened variable was used to track if the hidraw was opened by any
clients to silence keyboard/mouse events while opened. However, there was no
counting of how many clients were opened, so opening two at the same time and
then closing one would fool the driver into thinking it had no remaining opened
clients.

Signed-off-by: Vicki Pfau <vi@endrift.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-steam.c