]> err.no Git - linux-2.6/commitdiff
HID: export headers properly
authorMike Frysinger <vapier@gentoo.org>
Tue, 8 Apr 2008 08:20:36 +0000 (10:20 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 22 Apr 2008 09:34:59 +0000 (11:34 +0200)
I have people whining about using these headers in userspace, and they have
__KERNEL__ markings which implies they're supposed to be exported.  I also
added the required linux/types.h include to hidraw.h since it uses the __u##
kernel types.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Jiri Kosina <jikos@jikos.cz>
Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
include/linux/Kbuild
include/linux/hidraw.h

index b3d9ccde0c278983954f2105771ac0761efc16d3..5d741720332a48d6e8ee6606d23ede87ca06a342 100644 (file)
@@ -210,7 +210,9 @@ unifdef-y += hdlcdrv.h
 unifdef-y += hdlc.h
 unifdef-y += hdreg.h
 unifdef-y += hdsmart.h
+unifdef-y += hid.h
 unifdef-y += hiddev.h
+unifdef-y += hidraw.h
 unifdef-y += hpet.h
 unifdef-y += i2c.h
 unifdef-y += i2c-dev.h
index 0536f299f7ff8292e6cebf77bcd2c7c66eff3bef..dbb5c8c374f01c286e1bfaa0e2da00c67718c88c 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <linux/hid.h>
+#include <linux/types.h>
 
 struct hidraw_report_descriptor {
        __u32 size;