]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Default initialize all elements of the LED max_brightness array to 1
authorFrank Praznik <frank.praznik@oh.rr.com>
Wed, 30 Jul 2014 02:55:48 +0000 (19:55 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 30 Jul 2014 09:25:22 +0000 (11:25 +0200)
commitad31ba91740a51a48441a8d95b2b8ea4120c64a5
treed0462485531556084b73c2f976a5d2a061efaff0
parentf920453d0b8afcafa76b2cfcebea8d9ed81fe816
HID: sony: Default initialize all elements of the LED max_brightness array to 1

Previously only the first element of the array was initialized to 1
leading to potential incorrect max brightness values for the LEDs
on the Dualshock 3 and buzzer controllers.

Use a designated initializer to initialize the whole array to the
correct value.

Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c