HID: playstation: add DualSense player LED support.
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Wed, 17 Feb 2021 00:56:09 +0000 (16:56 -0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 18 Feb 2021 16:41:51 +0000 (17:41 +0100)
commit949aaccda019723050a2cd98d7b4492b06423f27
treef087ed8500b1e8439e5c527a9e63ca603ffe4490
parentc26e48b150fccb07c4b7f0f419f2b0a2c42e57d2
HID: playstation: add DualSense player LED support.

The DualSense features 5 player LEDs below its touchpad, which are
meant as player id indications. The LEDs are configured with a
player ID determined by an ID allocator, which assign player ids
to ps_device instances.

This patch is a combination of the following original patches
minus use of LED framework APIs:
- HID: playstation: add DualSense player LEDs support.
- HID: playstation: DualSense set LEDs to default player id.

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