Skip to content

Commit

Permalink
Remove struct input_device_id from public view in linux/input.h
Browse files Browse the repository at this point in the history
It uses kernel_ulong_t but can't be wrapped in __KERNEL__ because it's
used from scripts/mod/file2alias.c -- but we _can_ hide it inside
header manually too (and it doesn't generally exist for userspace).

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Apr 29, 2006
1 parent 778382e commit c7afb48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,9 @@ struct ff_effect {

#define FF_MAX 0x7f

#ifdef LINUX_MOD_DEVICETABLE_H
/* We only want this if mod_devicetable.h has been included -- that's
either in kernel space, or in scripts/mod/file2alias.c */
struct input_device_id {

kernel_ulong_t flags;
Expand All @@ -823,6 +826,7 @@ struct input_device_id {

kernel_ulong_t driver_info;
};
#endif

/*
* Structure for hotplug & device<->driver matching.
Expand Down

0 comments on commit c7afb48

Please sign in to comment.