diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2016-07-08 06:58:37 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-07-08 12:36:03 +0200 |
commit | f4c109b660fa1d0453a6dde75bef725304687832 (patch) | |
tree | 03489b8c928d85a7ba5109666ccbf7174eaeccce /drivers/hid/hid-led.c | |
parent | 9d1e048cc8e1f9317b0bff611021aaf52e65f9d4 (diff) | |
download | linux-stable-f4c109b660fa1d0453a6dde75bef725304687832.tar.gz linux-stable-f4c109b660fa1d0453a6dde75bef725304687832.tar.bz2 linux-stable-f4c109b660fa1d0453a6dde75bef725304687832.zip |
HID: hid-led: fix Delcom support on big endian systems
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>
Diffstat (limited to 'drivers/hid/hid-led.c')
-rw-r--r-- | drivers/hid/hid-led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-led.c b/drivers/hid/hid-led.c index 4c43ef8e71f8..d8d55f37b4f5 100644 --- 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) |