mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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>
This commit is contained in:
parent
9d1e048cc8
commit
f4c109b660
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue