Re: [PATCH 4/6] i2c: designware-amdisp: use i2c_adapter_dev()

From: Andy Shevchenko
Date: Sat Dec 27 2025 - 09:30:56 EST


On Sat, Dec 27, 2025 at 04:29:43PM +0200, Andy Shevchenko wrote:
> On Tue, Dec 23, 2025 at 11:08:21AM +0100, Bartosz Golaszewski wrote:

...

> > - ACPI_COMPANION_SET(&adap->dev, ACPI_COMPANION(&pdev->dev));
> > + ACPI_COMPANION_SET(i2c_adapter_dev(adap), ACPI_COMPANION(&pdev->dev));
> > adap->dev.of_node = pdev->dev.of_node;
>
> Why not just replace these with i2c_dev_set_node()?

Oh, I meant the i2c_adapter_set_node() that you just introduced in the previous
series. Effectively this makes a patch of that series.

--
With Best Regards,
Andy Shevchenko