Re: [PATCH v2 2/3] platform/x86: x86-android-tablets: Add support for getting i2c_adapter by PCI parent devname()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 4, 2024 at 10:09 PM Hans de Goede <hdegoede@xxxxxxxxxx> wrote:
>
> On the Vexia EDU ATLA 10 tablet, which ships with Android + a custom Linux
> (guadalinex) using the custom Android kernel the I2C controllers are not
> enumerated as ACPI devices as they typically are.
>
> Instead they are enumerated as PCI devices which do not have ACPI firmware
> nodes associated with them, so getting the i2c_adapter by the ACPI path of
> its firmware node does not work.
>
> Add support for getting the i2c_adapter by the devname() of its PCI parent
> instead.

Reviewed-by: Andy Shevchenko <andy@xxxxxxxxxx>

...

>         struct i2c_board_info board_info = client_info->board_info;
> -       struct i2c_adapter *adap;
> +       struct i2c_adapter *adap = NULL;

Unneeded change.

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux