Re: [PATCH v1 2/6] i2c: core: Unify the firmware node type check
From: Andy Shevchenko
Date: Fri Mar 21 2025 - 14:56:30 EST
On Wed, Mar 12, 2025 at 08:48:49PM +0200, Andy Shevchenko wrote:
> OF and ACPI currently are using asymmetrical APIs to check
> for the firmware node type. Unify them by using is_*_node()
> against struct fwnode_handle pointer.
> drivers/i2c/i2c-core-base.c | 14 ++++++++------
The i2c-core-slave.c can be also modified to follow the same approach.
I'll do that way in v2.
--
With Best Regards,
Andy Shevchenko