On Sun, May 16, 2004 at 02:58:03PM -0700, Greg KH wrote: > Ick, does hiddev really need hid.h? If so, then we need to move it to > include/linux/.
How about this patch (applies both to 2.4 and 2.6)? --- linux/include/linux/hiddev.h.hiddev-multi 2004-04-14 17:05:40 +0400 +++ linux/include/linux/hiddev.h 2004-05-08 17:14:26 +0400 @@ -29,6 +29,8 @@ * Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic */ +#include <asm/types.h> + /* * The event structure itself */ @@ -128,10 +130,11 @@ /* hiddev_usage_ref_multi is used for sending multiple bytes to a control. * It really manifests itself as setting the value of consecutive usages */ +#define HID_MAX_MULTI_USAGES 1024 struct hiddev_usage_ref_multi { struct hiddev_usage_ref uref; __u32 num_values; - __s32 values[HID_MAX_USAGES]; + __s32 values[HID_MAX_MULTI_USAGES]; }; /* FIELD_INDEX_NONE is returned in read() data from the kernel when flags
pgpLBFzNFELvE.pgp
Description: PGP signature