• Jiri Kosina's avatar
    HID: separate quirks for report descriptor fixup · ea9a4a8b
    Jiri Kosina authored
    Lately there have been quite a lot of bug reports against broken devices
    which require us to fix their report descriptor in the runtime, before it
    is passed to the HID parser. Those devices have eaten quite an amount of
    our quirks space, which isn't particularly necessary - the quirks are not
    needed after the report descriptor is parsed, and they just consume bits.
    
    Therefore this patch separates the quirks for report descriptor fixup, and
    moves their handling into separate code. The quirks are then forgotten as
    soon as the report descriptor has been parsed.
    
    Module parameter 'rdesc_quirks' is introduced to be able to modify these
    quirks in runtime in a similar way to 'quirks' parameter for ordinary HID
    quirks.
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    ea9a4a8b
hid-core.c 29.2 KB