]> Pileus Git - ~andy/linux/blobdiff - drivers/hid/hid-kye.c
HID: use hid_hw_request() instead of direct call to usbhid
[~andy/linux] / drivers / hid / hid-kye.c
index b4f0d8216fd099bd69a2531600c02a241c42929f..6af90dbdc3d45e1295db182588c6a8bbae2978ca 100644 (file)
@@ -16,8 +16,6 @@
 #include <linux/device.h>
 #include <linux/hid.h>
 #include <linux/module.h>
-#include <linux/usb.h>
-#include "usbhid/usbhid.h"
 
 #include "hid-ids.h"
 
@@ -361,7 +359,7 @@ static int kye_tablet_enable(struct hid_device *hdev)
        value[4] = 0x00;
        value[5] = 0x00;
        value[6] = 0x00;
-       usbhid_submit_report(hdev, report, USB_DIR_OUT);
+       hid_hw_request(hdev, report, HID_REQ_SET_REPORT);
 
        return 0;
 }
@@ -419,17 +417,6 @@ static struct hid_driver kye_driver = {
        .probe = kye_probe,
        .report_fixup = kye_report_fixup,
 };
+module_hid_driver(kye_driver);
 
-static int __init kye_init(void)
-{
-       return hid_register_driver(&kye_driver);
-}
-
-static void __exit kye_exit(void)
-{
-       hid_unregister_driver(&kye_driver);
-}
-
-module_init(kye_init);
-module_exit(kye_exit);
 MODULE_LICENSE("GPL");