Commit 63f3861d2fbf8ccbad1386ac9ac8b822c036ea00

Authored by Jiri Kosina
Committed by Greg Kroah-Hartman
1 parent 4c2ae844b5

[PATCH] Generic HID layer - build

This modifies Makefiles and Kconfigs to properly reflect the creation of
generic HID layer.

It also removes the dependency of BROKEN, which was introduced by the
first patch in series (see the comment). Also updates credits.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 7 changed files with 51 additions and 18 deletions Side-by-side Diff

... ... @@ -1808,6 +1808,14 @@
1808 1808 S: 1098 VA Amsterdam
1809 1809 S: The Netherlands
1810 1810  
  1811 +N: Jiri Kosina
  1812 +E: jikos@jikos.cz
  1813 +E: jkosina@suse.cz
  1814 +D: Generic HID layer - original code split, fixes
  1815 +D: Various ACPI fixes, keeping correct battery state through suspend
  1816 +D: various lockdep annotations, autofs and other random bugfixes
  1817 +S: Prague, Czech Republic
  1818 +
1811 1819 N: Gene Kozin
1812 1820 E: 74604.152@compuserve.com
1813 1821 W: http://www.sangoma.com
... ... @@ -64,6 +64,8 @@
64 64  
65 65 source "sound/Kconfig"
66 66  
  67 +source "drivers/hid/Kconfig"
  68 +
67 69 source "drivers/usb/Kconfig"
68 70  
69 71 source "drivers/mmc/Kconfig"
... ... @@ -77,5 +77,6 @@
77 77 obj-$(CONFIG_SUPERH) += sh/
78 78 obj-$(CONFIG_GENERIC_TIME) += clocksource/
79 79 obj-$(CONFIG_DMA_ENGINE) += dma/
  80 +obj-$(CONFIG_HID) += hid/
80 81 obj-$(CONFIG_PPC_PS3) += ps3/
  1 +#
  2 +# HID driver configuration
  3 +#
  4 +menu "HID Devices"
  5 + depends on INPUT
  6 +
  7 +config HID
  8 + tristate "Generic HID support"
  9 + default y
  10 + ---help---
  11 + Say Y here if you want generic HID support to connect keyboards,
  12 + mice, joysticks, graphic tablets, or any other HID based devices
  13 + to your computer. You also need to select particular types of
  14 + HID devices you want to compile support for, in the particular
  15 + driver menu (USB, Bluetooth)
  16 +
  17 +endmenu
drivers/hid/Makefile
  1 +#
  2 +# Makefile for the HID driver
  3 +#
  4 +
  5 +# Multipart objects.
  6 +hid-objs := hid-core.o hid-input.o
  7 +
  8 +# Optional parts of multipart objects.
  9 +
  10 +obj-$(CONFIG_HID) += hid.o
  11 +
  12 +ifeq ($(CONFIG_INPUT_DEBUG),y)
  13 +EXTRA_CFLAGS += -DDEBUG
  14 +endif
drivers/usb/input/Kconfig
... ... @@ -6,9 +6,10 @@
6 6  
7 7 config USB_HID
8 8 tristate "USB Human Interface Device (full HID) support"
9   - depends on USB && BROKEN
  9 + default y
  10 + depends on USB && HID
10 11 ---help---
11   - Say Y here if you want full HID support to connect keyboards,
  12 + Say Y here if you want full HID support to connect USB keyboards,
12 13 mice, joysticks, graphic tablets, or any other HID based devices
13 14 to your computer via USB. You also need to select HID Input layer
14 15 support (below) if you want to use keyboards, mice, joysticks and
15 16  
... ... @@ -27,20 +28,10 @@
27 28 comment "Input core support is needed for USB HID input layer or HIDBP support"
28 29 depends on USB_HID && INPUT=n
29 30  
30   -config USB_HIDINPUT
31   - bool "HID input layer support"
32   - default y
33   - depends on INPUT && USB_HID
34   - help
35   - Say Y here if you want to use a USB keyboard, mouse or joystick,
36   - or any other HID input device.
37   -
38   - If unsure, say Y.
39   -
40   -config USB_HIDINPUT_POWERBOOK
  31 +config USB_HID_POWERBOOK
41 32 bool "Enable support for iBook/PowerBook special keys"
42 33 default n
43   - depends on USB_HIDINPUT
  34 + depends on USB_HID
44 35 help
45 36 Say Y here if you want support for the special keys (Fn, Numlock) on
46 37 Apple iBooks and PowerBooks.
... ... @@ -49,7 +40,7 @@
49 40  
50 41 config HID_FF
51 42 bool "Force feedback support (EXPERIMENTAL)"
52   - depends on USB_HIDINPUT && EXPERIMENTAL
  43 + depends on USB_HID && EXPERIMENTAL
53 44 help
54 45 Say Y here is you want force feedback support for a few HID devices.
55 46 See below for a list of supported devices.
drivers/usb/input/Makefile
... ... @@ -11,9 +11,6 @@
11 11 ifeq ($(CONFIG_USB_HIDDEV),y)
12 12 usbhid-objs += hiddev.o
13 13 endif
14   -ifeq ($(CONFIG_USB_HIDINPUT),y)
15   - usbhid-objs += hid-input.o
16   -endif
17 14 ifeq ($(CONFIG_HID_PID),y)
18 15 usbhid-objs += hid-pidff.o
19 16 endif