[PATCH v4] HID: core: Sanitize event code and type when mapping input