summaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2015-01-21 14:07:10 +0100
committerJiri Kosina <jkosina@suse.cz>2015-01-21 22:23:20 +0100
commit86312e4b78647d9fa62cf2293c50161cc0421d30 (patch)
tree4d1fe7438bddff9479a2382ccf46794a09d276a1 /drivers/hid/usbhid/Makefile
parentHID: microsoft: add support for Japanese Surface Type Cover 3 (diff)
downloadlinux-86312e4b78647d9fa62cf2293c50161cc0421d30.tar.xz
linux-86312e4b78647d9fa62cf2293c50161cc0421d30.zip
HID: Use Kbuild idiom in Makefiles
Use <driver>-$(CONFIG_FOO) syntax to build multipart objects with optional parts, since all the config options are bool. Also, delete the obvious comments in the usbhid Makefile. Signed-off-by: Michal Marek <mmarek@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid/Makefile')
-rw-r--r--drivers/hid/usbhid/Makefile12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/hid/usbhid/Makefile b/drivers/hid/usbhid/Makefile
index db3cf31c6fa1..890f2914a8ff 100644
--- a/drivers/hid/usbhid/Makefile
+++ b/drivers/hid/usbhid/Makefile
@@ -2,17 +2,9 @@
# Makefile for the USB input drivers
#
-# Multipart objects.
usbhid-y := hid-core.o hid-quirks.o
-
-# Optional parts of multipart objects.
-
-ifeq ($(CONFIG_USB_HIDDEV),y)
- usbhid-y += hiddev.o
-endif
-ifeq ($(CONFIG_HID_PID),y)
- usbhid-y += hid-pidff.o
-endif
+usbhid-$(CONFIG_USB_HIDDEV) += hiddev.o
+usbhid-$(CONFIG_HID_PID) += hid-pidff.o
obj-$(CONFIG_USB_HID) += usbhid.o
obj-$(CONFIG_USB_KBD) += usbkbd.o