diff options
author | Michal Malý <madcatxster@devoid-pointer.net> | 2015-04-08 20:56:53 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-05-07 14:27:18 (GMT) |
commit | f4e1eb966256b15335054fac7b304f14e4965b5d (patch) | |
tree | 236e941fedc5d1a52f6fc03254e8f21163c92fb4 | |
parent | bbfd0ccc598ded2ec9f618f10b5bc54b1130f4d3 (diff) | |
download | linux-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>
-rw-r--r-- | drivers/hid/hid-lg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index d5022b3..429340d 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) |