summaryrefslogtreecommitdiff
path: root/net/bluetooth/hidp/core.c
diff options
context:
space:
mode:
authorSimon Wood <simon@mungewell.org>2014-02-05 23:34:18 +0400
committerJiri Kosina <jkosina@suse.cz>2014-02-06 12:44:39 +0400
commit7db7504a49b378529793ca9d331318567c496cfe (patch)
tree6878c5782e75c904183dba3ce78109d1a0ca6e2d /net/bluetooth/hidp/core.c
parente4321c5cebbee9fc4988223af9aa1298d939d388 (diff)
downloadlinux-7db7504a49b378529793ca9d331318567c496cfe.tar.xz
HID: hid-sony: report actual brightness value when reading LED
The Dualshock4 controller contains a RGB LED, which is enabled via the '/sys/class/leds' interface. At present the driver only returns whether each of the RGB LEDs is lit (ie not off), but no indication of it's brightness. This patch fixes the reading of the current brightnes so that it returns the value (rather than just off=0, on=LED_FULL). Tested on the DS4 and SixAxis (for compatibility). Signed-off-by: Simon Wood <simon@mungewell.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/bluetooth/hidp/core.c')
0 files changed, 0 insertions, 0 deletions