Re: [PATCH v2 4/4] media: i2c: vd55g1: Add ACPI support
From: Benjamin Mugnier
Date: Wed Sep 30 2026 - 04:05:07 EST
Hi Ruslan,
Le 29/09/2026 à 11:27, Ruslan Koreev a écrit :
> Add an ACPI match table with the TBE20A1 HID that Lenovo uses for the
> VD55G1, with the same match data as the st,vd55g1 compatible.
>
> Signed-off-by: Ruslan Koreev <koreev.r@xxxxxxxxx>
Again, can't test but :
Acked-By: Benjamin Mugnier <benjamin.mugnier@xxxxxxxxxxx>
> ---
> drivers/media/i2c/vd55g1.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/media/i2c/vd55g1.c b/drivers/media/i2c/vd55g1.c
> index 8043eaa50..e3939bb9b 100644
> --- a/drivers/media/i2c/vd55g1.c
> +++ b/drivers/media/i2c/vd55g1.c
> @@ -2081,6 +2081,12 @@ static const struct of_device_id vd55g1_dt_ids[] = {
> };
> MODULE_DEVICE_TABLE(of, vd55g1_dt_ids);
>
> +static const struct acpi_device_id vd55g1_acpi_ids[] = {
> + { .id = "TBE20A1", .driver_data = (kernel_ulong_t)&vd55g1_versions[0] },
> + { /* sentinel */ }
> +};
> +MODULE_DEVICE_TABLE(acpi, vd55g1_acpi_ids);
> +
> static const struct dev_pm_ops vd55g1_pm_ops = {
> SET_RUNTIME_PM_OPS(vd55g1_power_off, vd55g1_power_on, NULL)
> };
> @@ -2089,6 +2095,7 @@ static struct i2c_driver vd55g1_i2c_driver = {
> .driver = {
> .name = "vd55g1",
> .of_match_table = vd55g1_dt_ids,
> + .acpi_match_table = vd55g1_acpi_ids,
> .pm = &vd55g1_pm_ops,
> },
> .probe = vd55g1_probe,
--
Regards,
Benjamin