summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorMichal Malý <madcatxster@devoid-pointer.net>2015-04-08 23:56:53 +0300
committerJiri Kosina <jkosina@suse.cz>2015-05-07 17:27:18 +0300
commitf4e1eb966256b15335054fac7b304f14e4965b5d (patch)
tree236e941fedc5d1a52f6fc03254e8f21163c92fb4 /drivers/hid
parentbbfd0ccc598ded2ec9f618f10b5bc54b1130f4d3 (diff)
downloadlinux-f4e1eb966256b15335054fac7b304f14e4965b5d.tar.xz
HID: hid-lg: Only one of LG_FF flags can be set for a given device
Only one of LG_FF flags can be set for a given device. Signed-off-by: Michal Malý <madcatxster@devoid-pointer.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-lg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c
index d5022b3130d0..429340d809b5 100644
--- a/drivers/hid/hid-lg.c
+++ b/drivers/hid/hid-lg.c
@@ -714,11 +714,11 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id)
if (drv_data->quirks & LG_FF)
ret = lgff_init(hdev);
- if (drv_data->quirks & LG_FF2)
+ else if (drv_data->quirks & LG_FF2)
ret = lg2ff_init(hdev);
- if (drv_data->quirks & LG_FF3)
+ else if (drv_data->quirks & LG_FF3)
ret = lg3ff_init(hdev);
- if (drv_data->quirks & LG_FF4)
+ else if (drv_data->quirks & LG_FF4)
ret = lg4ff_init(hdev);
if (ret)