Skip to content

Commit

Permalink
HID: export headers properly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Frysinger authored and Jiri Kosina committed Apr 22, 2008
1 parent 3e52a05 commit 0dd9154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions include/linux/hidraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#include <linux/hid.h>
#include <linux/types.h>

struct hidraw_report_descriptor {
__u32 size;
Expand Down

0 comments on commit 0dd9154

Please sign in to comment.