diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 15:00:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 15:00:48 -0500 |
commit | fd62c5450324af7f6cc12897b09b77285cd48a92 (patch) | |
tree | d4390981348e5a08e31a50fe9cb0da0715cf005c /include/linux/i2c | |
parent | a2013a13e68354e0c8f3696b69701803e13fb737 (diff) | |
parent | 818b930bc15077fc00ff16bb22c5df1857f05afa (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
Pull HID subsystem updates from Jiri Kosina:
1) Support for HID over I2C bus has been added by Benjamin Tissoires.
ACPI device discovery is still in the works.
2) Support for Win8 Multitiouch protocol is being added, most work done
by Benjamin Tissoires as well
3) EIO/ERESTARTSYS is fixed in hiddev/hidraw, fixes by Andrew Duggan
and Jiri Kosina
4) ION iCade driver added by Bastien Nocera
5) Support for a couple new Roccat devices has been added by Stefan
Achatz
6) HID sensor hubs are now auto-detected instead of having to list all
the VID/PID combinations in the blacklist array
7) other random fixes and support for new device IDs
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (65 commits)
HID: i2c-hid: add mutex protecting open/close race
Revert "HID: sensors: add to special driver list"
HID: sensors: autodetect USB HID sensor hubs
HID: hidp: fallback to input session properly if hid is blacklisted
HID: i2c-hid: fix ret_count check
HID: i2c-hid: fix i2c_hid_get_raw_report count mismatches
HID: i2c-hid: remove extra .irq field in struct i2c_hid
HID: i2c-hid: reorder allocation/free of buffers
HID: i2c-hid: fix memory corruption due to missing hid declaration
HID: i2c-hid: remove superfluous include
HID: i2c-hid: remove unneeded test in i2c_hid_remove
HID: i2c-hid: i2c_hid_get_report may fail
HID: i2c-hid: also call i2c_hid_free_buffers in i2c_hid_remove
HID: i2c-hid: fix error messages
HID: i2c-hid: fix return paths
HID: i2c-hid: remove unused static declarations
HID: i2c-hid: fix i2c_hid_dbg macro
HID: i2c-hid: fix checkpatch.pl warning
HID: i2c-hid: enhance Kconfig
HID: i2c-hid: change I2C name
...
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/i2c-hid.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/i2c/i2c-hid.h b/include/linux/i2c/i2c-hid.h new file mode 100644 index 000000000000..60e411d764d4 --- /dev/null +++ b/include/linux/i2c/i2c-hid.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * HID over I2C protocol implementation | ||
3 | * | ||
4 | * Copyright (c) 2012 Benjamin Tissoires <benjamin.tissoires@gmail.com> | ||
5 | * Copyright (c) 2012 Ecole Nationale de l'Aviation Civile, France | ||
6 | * | ||
7 | * This file is subject to the terms and conditions of the GNU General Public | ||
8 | * License. See the file COPYING in the main directory of this archive for | ||
9 | * more details. | ||
10 | */ | ||
11 | |||
12 | #ifndef __LINUX_I2C_HID_H | ||
13 | #define __LINUX_I2C_HID_H | ||
14 | |||
15 | #include <linux/types.h> | ||
16 | |||
17 | /** | ||
18 | * struct i2chid_platform_data - used by hid over i2c implementation. | ||
19 | * @hid_descriptor_address: i2c register where the HID descriptor is stored. | ||
20 | * | ||
21 | * Note that it is the responsibility of the platform driver (or the acpi 5.0 | ||
22 | * driver) to setup the irq related to the gpio in the struct i2c_board_info. | ||
23 | * The platform driver should also setup the gpio according to the device: | ||
24 | * | ||
25 | * A typical example is the following: | ||
26 | * irq = gpio_to_irq(intr_gpio); | ||
27 | * hkdk4412_i2c_devs5[0].irq = irq; // store the irq in i2c_board_info | ||
28 | * gpio_request(intr_gpio, "elan-irq"); | ||
29 | * s3c_gpio_setpull(intr_gpio, S3C_GPIO_PULL_UP); | ||
30 | */ | ||
31 | struct i2c_hid_platform_data { | ||
32 | u16 hid_descriptor_address; | ||
33 | }; | ||
34 | |||
35 | #endif /* __LINUX_I2C_HID_H */ | ||