hid-kye.c (48a732dfaa77a4dfec803aa8f248373998704f76) | hid-kye.c (d881427253da011495f4193663d809d0e9dfa215) |
---|---|
1/* 2 * HID driver for Kye/Genius devices not fully compliant with HID standard 3 * 4 * Copyright (c) 2009 Jiri Kosina 5 * Copyright (c) 2009 Tomas Hanak 6 * Copyright (c) 2012 Nikolai Kondrashov 7 */ 8 9/* 10 * This program is free software; you can redistribute it and/or modify it 11 * under the terms of the GNU General Public License as published by the Free 12 * Software Foundation; either version 2 of the License, or (at your option) 13 * any later version. 14 */ 15 16#include <linux/device.h> 17#include <linux/hid.h> 18#include <linux/module.h> | 1/* 2 * HID driver for Kye/Genius devices not fully compliant with HID standard 3 * 4 * Copyright (c) 2009 Jiri Kosina 5 * Copyright (c) 2009 Tomas Hanak 6 * Copyright (c) 2012 Nikolai Kondrashov 7 */ 8 9/* 10 * This program is free software; you can redistribute it and/or modify it 11 * under the terms of the GNU General Public License as published by the Free 12 * Software Foundation; either version 2 of the License, or (at your option) 13 * any later version. 14 */ 15 16#include <linux/device.h> 17#include <linux/hid.h> 18#include <linux/module.h> |
19#include <linux/usb.h> 20#include "usbhid/usbhid.h" | |
21 22#include "hid-ids.h" 23 24/* 25 * See EasyPen i405X description, device and HID report descriptors at 26 * http://sf.net/apps/mediawiki/digimend/?title=KYE_EasyPen_i405X 27 */ 28 --- 327 unchanged lines hidden (view full) --- 356 357 value[0] = 0x12; 358 value[1] = 0x10; 359 value[2] = 0x11; 360 value[3] = 0x12; 361 value[4] = 0x00; 362 value[5] = 0x00; 363 value[6] = 0x00; | 19 20#include "hid-ids.h" 21 22/* 23 * See EasyPen i405X description, device and HID report descriptors at 24 * http://sf.net/apps/mediawiki/digimend/?title=KYE_EasyPen_i405X 25 */ 26 --- 327 unchanged lines hidden (view full) --- 354 355 value[0] = 0x12; 356 value[1] = 0x10; 357 value[2] = 0x11; 358 value[3] = 0x12; 359 value[4] = 0x00; 360 value[5] = 0x00; 361 value[6] = 0x00; |
364 usbhid_submit_report(hdev, report, USB_DIR_OUT); | 362 hid_hw_request(hdev, report, HID_REQ_SET_REPORT); |
365 366 return 0; 367} 368 369static int kye_probe(struct hid_device *hdev, const struct hid_device_id *id) 370{ 371 int ret; 372 --- 52 unchanged lines hidden --- | 363 364 return 0; 365} 366 367static int kye_probe(struct hid_device *hdev, const struct hid_device_id *id) 368{ 369 int ret; 370 --- 52 unchanged lines hidden --- |