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