File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1887,6 +1887,16 @@ static void mt_remove(struct hid_device *hdev)
1887
1887
hid_hw_stop (hdev );
1888
1888
}
1889
1889
1890
+ static void mt_on_hid_hw_open (struct hid_device * hdev )
1891
+ {
1892
+ mt_set_modes (hdev , HID_LATENCY_NORMAL , TOUCHPAD_REPORT_ALL );
1893
+ }
1894
+
1895
+ static void mt_on_hid_hw_close (struct hid_device * hdev )
1896
+ {
1897
+ mt_set_modes (hdev , HID_LATENCY_HIGH , TOUCHPAD_REPORT_NONE );
1898
+ }
1899
+
1890
1900
/*
1891
1901
* This list contains only:
1892
1902
* - VID/PID of products not working with the default multitouch handling
@@ -2354,5 +2364,7 @@ static struct hid_driver mt_driver = {
2354
2364
.suspend = pm_ptr (mt_suspend ),
2355
2365
.reset_resume = pm_ptr (mt_reset_resume ),
2356
2366
.resume = pm_ptr (mt_resume ),
2367
+ .on_hid_hw_open = mt_on_hid_hw_open ,
2368
+ .on_hid_hw_close = mt_on_hid_hw_close ,
2357
2369
};
2358
2370
module_hid_driver (mt_driver );
You can’t perform that action at this time.
0 commit comments