diff mbox series

HID: i2c-hid: add Vero K147 to descriptor override

Message ID 20201126175158.1183879-1-jsbc@gmx.de (mailing list archive)
State Mainlined
Commit c870d50ce387d84b6438211a7044c60afbd5d60a
Delegated to: Jiri Kosina
Headers show
Series HID: i2c-hid: add Vero K147 to descriptor override | expand

Commit Message

Julian Sax Nov. 26, 2020, 5:51 p.m. UTC
This device uses the SIPODEV SP1064 touchpad, which does not
supply descriptors, so it has to be added to the override list.

Cc: stable@vger.kernel.org
Signed-off-by: Julian Sax <jsbc@gmx.de>
---
 drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c | 8 ++++++++
 1 file changed, 8 insertions(+)

--
2.29.2

Comments

Hans de Goede Nov. 27, 2020, 9:16 a.m. UTC | #1
Hi,

On 11/26/20 6:51 PM, Julian Sax wrote:
> This device uses the SIPODEV SP1064 touchpad, which does not
> supply descriptors, so it has to be added to the override list.
> 
> Cc: stable@vger.kernel.org
> Signed-off-by: Julian Sax <jsbc@gmx.de>

Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans

> ---
>  drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c b/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
> index 35f3bfc3e6f5..8e0f67455c09 100644
> --- a/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
> +++ b/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
> @@ -405,6 +405,14 @@ static const struct dmi_system_id i2c_hid_dmi_desc_override_table[] = {
>  		},
>  		.driver_data = (void *)&sipodev_desc
>  	},
> +	{
> +		.ident = "Vero K147",
> +		.matches = {
> +			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VERO"),
> +			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "K147"),
> +		},
> +		.driver_data = (void *)&sipodev_desc
> +	},
>  	{ }	/* Terminate list */
>  };
> 
> --
> 2.29.2
>
Jiri Kosina Nov. 27, 2020, 3:18 p.m. UTC | #2
On Thu, 26 Nov 2020, Julian Sax wrote:

> This device uses the SIPODEV SP1064 touchpad, which does not
> supply descriptors, so it has to be added to the override list.

Applied, thank you.
diff mbox series

Patch

diff --git a/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c b/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
index 35f3bfc3e6f5..8e0f67455c09 100644
--- a/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
+++ b/drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c
@@ -405,6 +405,14 @@  static const struct dmi_system_id i2c_hid_dmi_desc_override_table[] = {
 		},
 		.driver_data = (void *)&sipodev_desc
 	},
+	{
+		.ident = "Vero K147",
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VERO"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "K147"),
+		},
+		.driver_data = (void *)&sipodev_desc
+	},
 	{ }	/* Terminate list */
 };