summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-led.c2
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)