diff options
author | Michal Malý <madcatxster@devoid-pointer.net> | 2015-04-08 22:56:53 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-05-07 16:27:18 +0200 |
commit | f4e1eb966256b15335054fac7b304f14e4965b5d (patch) | |
tree | 236e941fedc5d1a52f6fc03254e8f21163c92fb4 /drivers/hid/hid-lg.c | |
parent | bbfd0ccc598ded2ec9f618f10b5bc54b1130f4d3 (diff) | |
download | linux-f4e1eb966256b15335054fac7b304f14e4965b5d.tar.bz2 |
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/hid-lg.c')
-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 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) |