projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d1e048
)
HID: hid-led: fix Delcom support on big endian systems
author
Heiner Kallweit
<hkallweit1@gmail.com>
Fri, 8 Jul 2016 04:58:37 +0000
(06:58 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Fri, 8 Jul 2016 10:36:03 +0000
(12:36 +0200)
Properly handle this __le16 value on big endian systems.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-led.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/hid-led.c
b/drivers/hid/hid-led.c
index 4c43ef8e71f880c980dd49c29d88ab07819052eb..d8d55f37b4f5604e2d10672513267c483726f05e 100644
(file)
--- a/
drivers/hid/hid-led.c
+++ b/
drivers/hid/hid-led.c
@@
-327,7
+327,7
@@
static int delcom_init(struct hidled_device *ldev)
* Several Delcom devices share the same USB VID/PID
* Check for family id 2 for Visual Signal Indicator
*/
- return
dp.fw.family_code
== 2 ? 0 : -ENODEV;
+ return
le16_to_cpu(dp.fw.family_code)
== 2 ? 0 : -ENODEV;
}
static int luxafor_write(struct led_classdev *cdev, enum led_brightness br)