summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorFrank Praznik <frank.praznik@oh.rr.com>2014-04-14 10:11:35 -0400
committerJiri Kosina <jkosina@suse.cz>2014-04-24 18:53:41 +0200
commit8025087acf9d2b941bae93b3e0967560e7e03e87 (patch)
tree469b78c498d5e127461638e1b944f12466a9d6c9 /mm
parent314531f18de0063131567c535af0cec3e4969c24 (diff)
HID: sony: Initialize the controller LEDs with a device ID value
Add an IDA id allocator to assign unique, sequential device ids to Sixaxis and DualShock 4 controllers. Use the device ID to initialize the Sixaxis and DualShock 4 controller LEDs to default values. The number or color of the controller is set relative to other connected Sony controllers. Set the LED class brightness values to the initial values and add the new led to the array before calling led_classdev_register so that the correct brightness value shows up in the LED sysfs entry. Use explicit module init and exit functions since the IDA allocator must be manually destroyed when the module is unloaded. Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions