• David Fries's avatar
    [PATCH] USB: fix for HID field index · 41214ce6
    David Fries authored
    The problem I'm having is that the field index is always returned as 0
    when reading struct hiddev_usage_ref and I need something to
    distinguish the input data as the usage code is the same.  I looked
    through hid-core.c and hiddev.c and hiddev_hid_event is the only place
    I could see field->index being used.  It wasn't being initialized
    causing the input to always be returned as zero.
    Signed-off-by: default avatarDavid Fries <dfries@mail.win.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    41214ce6
hid-core.c 51.3 KB