提交 f4e1eb96 编写于 作者: M Michal Malý 提交者: Jiri Kosina

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: NMichal Malý <madcatxster@devoid-pointer.net>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 bbfd0ccc
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册