Skip to content
Commit 5307de63 authored by Martino Fontana's avatar Martino Fontana Committed by Jiri Kosina
Browse files

HID: nintendo: use ida for LED player id



Previously, the leds pattern would just increment with every controller
connected. This wouldn't take into consideration when controllers are
disconnected. The same controller could be connected and disconnected
with the pattern increasing player count each time.

This patch changes it by using an ID allocator in order to assign the
player id, the same way hid-playstation does.

Signed-off-by: default avatarMartino Fontana <tinozzo123@gmail.com>
Signed-off-by: default avatarRyan McClelland <rymcclel@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 3e78a6c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment