Skip to content

Commit 48a732d

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
Pull HID subsystem updates from Jiri Kosina: "HID subsystem and drivers update. Highlights: - new support of a group of Win7/Win8 multitouch devices, from Benjamin Tissoires - fix for compat interface brokenness in uhid, from Dmitry Torokhov - conversion of drivers to use hid_driver helper, by H Hartley Sweeten - HID over I2C transport received ACPI enumeration support, written by Mika Westerberg - there is an ongoing effort to make HID sensor hubs independent of USB transport. The first self-contained part of this work is provided here, done by Mika Westerberg - a few smaller fixes here and there, support for a couple new devices added" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (43 commits) HID: Correct Logitech order in hid-ids.h HID: LG4FF: Remove unnecessary deadzone code HID: LG: Prevent the Logitech Gaming Wheels deadzone HID: LG: Fix detection of Logitech Speed Force Wireless (WiiWheel) HID: LG: Add support for Logitech Momo Force (Red) Wheel HID: hidraw: print message when succesfully initialized HID: logitech: split accel, brake for Driving Force wheel HID: logitech: add report descriptor for Driving Force wheel HID: add ThingM blink(1) USB RGB LED support HID: uhid: make creating devices work on 64/32 systems HID: wiimote: fix nunchuck button parser HID: blacklist Velleman data acquisition boards HID: sensor-hub: don't limit the driver only to USB bus HID: sensor-hub: get rid of unused sensor_hub_grabbed_usages[] table HID: extend autodetect to handle I2C sensors as well HID: ntrig: use input_configured() callback to set the name HID: multitouch: do not use pointers towards hid-core HID: add missing GENERIC_HARDIRQ dependency HID: multitouch: make MT_CLS_ALWAYS_TRUE the new default class HID: multitouch: fix protocol for Elo panels ...
2 parents 9afa319 + 0d69a3c commit 48a732d

71 files changed

Lines changed: 1405 additions & 824 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
What: /sys/class/leds/SRWS1::<serial>::RPM1
2+
What: /sys/class/leds/SRWS1::<serial>::RPM2
3+
What: /sys/class/leds/SRWS1::<serial>::RPM3
4+
What: /sys/class/leds/SRWS1::<serial>::RPM4
5+
What: /sys/class/leds/SRWS1::<serial>::RPM5
6+
What: /sys/class/leds/SRWS1::<serial>::RPM6
7+
What: /sys/class/leds/SRWS1::<serial>::RPM7
8+
What: /sys/class/leds/SRWS1::<serial>::RPM8
9+
What: /sys/class/leds/SRWS1::<serial>::RPM9
10+
What: /sys/class/leds/SRWS1::<serial>::RPM10
11+
What: /sys/class/leds/SRWS1::<serial>::RPM11
12+
What: /sys/class/leds/SRWS1::<serial>::RPM12
13+
What: /sys/class/leds/SRWS1::<serial>::RPM13
14+
What: /sys/class/leds/SRWS1::<serial>::RPM14
15+
What: /sys/class/leds/SRWS1::<serial>::RPM15
16+
What: /sys/class/leds/SRWS1::<serial>::RPMALL
17+
Date: Jan 2013
18+
KernelVersion: 3.9
19+
Contact: Simon Wood <simon@mungewell.org>
20+
Description: Provides a control for turning on/off the LEDs which form
21+
an RPM meter on the front of the controller
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
What: /sys/class/leds/blink1::<serial>/rgb
2+
Date: January 2013
3+
Contact: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
4+
Description: The ThingM blink1 is an USB RGB LED. The color notation is
5+
3-byte hexadecimal. Read this attribute to get the last set
6+
color. Write the 24-bit hexadecimal color to change the current
7+
LED color. The default color is full white (0xFFFFFF).
8+
For instance, set the color to green with: echo 00FF00 > rgb
9+
10+
What: /sys/class/leds/blink1::<serial>/fade
11+
Date: January 2013
12+
Contact: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
13+
Description: This attribute allows to set a fade time in milliseconds for
14+
the next color change. Read the attribute to know the current
15+
fade time. The default value is set to 0 (no fade time). For
16+
instance, set a fade time of 2 seconds with: echo 2000 > fade
17+
18+
What: /sys/class/leds/blink1::<serial>/play
19+
Date: January 2013
20+
Contact: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
21+
Description: This attribute is used to play/pause the light patterns. Write 1
22+
to start playing, 0 to stop. Reading this attribute returns the
23+
current playing status.

‎MAINTAINERS‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7611,6 +7611,11 @@ S: Supported
76117611
F: drivers/thermal/
76127612
F: include/linux/thermal.h
76137613

7614+
THINGM BLINK(1) USB RGB LED DRIVER
7615+
M: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
7616+
S: Maintained
7617+
F: drivers/hid/hid-thingm.c
7618+
76147619
THINKPAD ACPI EXTRAS DRIVER
76157620
M: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>
76167621
L: ibm-acpi-devel@lists.sourceforge.net

‎drivers/hid/Kconfig‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,12 @@ config HID_SPEEDLINK
596596
---help---
597597
Support for Speedlink Vicious and Divine Cezanne mouse.
598598

599+
config HID_STEELSERIES
600+
tristate "Steelseries SRW-S1 steering wheel support"
601+
depends on USB_HID
602+
---help---
603+
Support for Steelseries SRW-S1 steering wheel
604+
599605
config HID_SUNPLUS
600606
tristate "Sunplus wireless desktop"
601607
depends on USB_HID
@@ -655,6 +661,16 @@ config HID_TOPSEED
655661
Say Y if you have a TopSeed Cyberlink or BTC Emprex or Conceptronic
656662
CLLRCMCE remote control.
657663

664+
config HID_THINGM
665+
tristate "ThingM blink(1) USB RGB LED"
666+
depends on USB_HID
667+
depends on LEDS_CLASS
668+
---help---
669+
Support for the ThingM blink(1) USB RGB LED. This driver registers a
670+
Linux LED class instance, plus additional sysfs attributes to control
671+
RGB colors, fade time and playing. The device is exposed through hidraw
672+
to access other functions.
673+
658674
config HID_THRUSTMASTER
659675
tristate "ThrustMaster devices support"
660676
depends on USB_HID
@@ -719,7 +735,7 @@ config HID_ZYDACRON
719735

720736
config HID_SENSOR_HUB
721737
tristate "HID Sensors framework support"
722-
depends on USB_HID
738+
depends on USB_HID && GENERIC_HARDIRQS
723739
select MFD_CORE
724740
default n
725741
-- help---

‎drivers/hid/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ obj-$(CONFIG_HID_SAMSUNG) += hid-samsung.o
101101
obj-$(CONFIG_HID_SMARTJOYPLUS) += hid-sjoy.o
102102
obj-$(CONFIG_HID_SONY) += hid-sony.o
103103
obj-$(CONFIG_HID_SPEEDLINK) += hid-speedlink.o
104+
obj-$(CONFIG_HID_STEELSERIES) += hid-steelseries.o
104105
obj-$(CONFIG_HID_SUNPLUS) += hid-sunplus.o
105106
obj-$(CONFIG_HID_GREENASIA) += hid-gaff.o
107+
obj-$(CONFIG_HID_THINGM) += hid-thingm.o
106108
obj-$(CONFIG_HID_THRUSTMASTER) += hid-tmff.o
107109
obj-$(CONFIG_HID_TIVO) += hid-tivo.o
108110
obj-$(CONFIG_HID_TOPSEED) += hid-topseed.o

‎drivers/hid/hid-a4tech.c‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,6 @@ static struct hid_driver a4_driver = {
146146
.probe = a4_probe,
147147
.remove = a4_remove,
148148
};
149+
module_hid_driver(a4_driver);
149150

150-
static int __init a4_init(void)
151-
{
152-
return hid_register_driver(&a4_driver);
153-
}
154-
155-
static void __exit a4_exit(void)
156-
{
157-
hid_unregister_driver(&a4_driver);
158-
}
159-
160-
module_init(a4_init);
161-
module_exit(a4_exit);
162151
MODULE_LICENSE("GPL");

‎drivers/hid/hid-apple.c‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -555,23 +555,6 @@ static struct hid_driver apple_driver = {
555555
.input_mapping = apple_input_mapping,
556556
.input_mapped = apple_input_mapped,
557557
};
558+
module_hid_driver(apple_driver);
558559

559-
static int __init apple_init(void)
560-
{
561-
int ret;
562-
563-
ret = hid_register_driver(&apple_driver);
564-
if (ret)
565-
pr_err("can't register apple driver\n");
566-
567-
return ret;
568-
}
569-
570-
static void __exit apple_exit(void)
571-
{
572-
hid_unregister_driver(&apple_driver);
573-
}
574-
575-
module_init(apple_init);
576-
module_exit(apple_exit);
577560
MODULE_LICENSE("GPL");

‎drivers/hid/hid-aureal.c‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ static struct hid_driver aureal_driver = {
3737
.id_table = aureal_devices,
3838
.report_fixup = aureal_report_fixup,
3939
};
40+
module_hid_driver(aureal_driver);
4041

41-
static int __init aureal_init(void)
42-
{
43-
return hid_register_driver(&aureal_driver);
44-
}
45-
46-
static void __exit aureal_exit(void)
47-
{
48-
hid_unregister_driver(&aureal_driver);
49-
}
50-
51-
module_init(aureal_init);
52-
module_exit(aureal_exit);
5342
MODULE_LICENSE("GPL");

‎drivers/hid/hid-axff.c‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -192,19 +192,7 @@ static struct hid_driver ax_driver = {
192192
.probe = ax_probe,
193193
.remove = ax_remove,
194194
};
195-
196-
static int __init ax_init(void)
197-
{
198-
return hid_register_driver(&ax_driver);
199-
}
200-
201-
static void __exit ax_exit(void)
202-
{
203-
hid_unregister_driver(&ax_driver);
204-
}
205-
206-
module_init(ax_init);
207-
module_exit(ax_exit);
195+
module_hid_driver(ax_driver);
208196

209197
MODULE_AUTHOR("Sergei Kolzun");
210198
MODULE_DESCRIPTION("Force feedback support for ACRUX game controllers");

‎drivers/hid/hid-belkin.c‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,6 @@ static struct hid_driver belkin_driver = {
8686
.input_mapping = belkin_input_mapping,
8787
.probe = belkin_probe,
8888
};
89+
module_hid_driver(belkin_driver);
8990

90-
static int __init belkin_init(void)
91-
{
92-
return hid_register_driver(&belkin_driver);
93-
}
94-
95-
static void __exit belkin_exit(void)
96-
{
97-
hid_unregister_driver(&belkin_driver);
98-
}
99-
100-
module_init(belkin_init);
101-
module_exit(belkin_exit);
10291
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)