]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: playstation: DualSense set LEDs to default player id.
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Sun, 7 Feb 2021 21:49:07 +0000 (13:49 -0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 11 Feb 2021 15:57:43 +0000 (16:57 +0100)
commit05afe02ac24f3dd75382fa3d1cc7438b5e87bc0a
tree1b9ee8c1a5711aeddad99f2a7f87a68566f1b498
parentc240f0cb88ec7386b1c21db042d348ed0cb9c3f4
HID: playstation: DualSense set LEDs to default player id.

Add a ID allocator to assign player ids to ps_device instances.
Utilize the player id to set a default color on the DualSense its
player LED strip.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Reviewed-by: Barnabás Pőcze <pobrn@protonmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-playstation.c