• J
    HID: separate quirks for report descriptor fixup · ea9a4a8b
    Jiri Kosina 提交于
    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: NJiri Kosina <jkosina@suse.cz>
    ea9a4a8b
hid-quirks.c 31.7 KB