]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: core: Unify the firmware node type check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Apr 2025 07:01:32 +0000 (10:01 +0300)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 16 Apr 2025 16:05:47 +0000 (18:05 +0200)
commit5763a474c887d4a9039ed684b1cc329f924c390b
tree90a60d2fbb672d390b5fbe1071942934a471e30b
parenta7de3fb3c2252d885c470939bae72ff9b4c820e8
i2c: core: Unify the firmware node type check

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.

Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/i2c-core-base.c
drivers/i2c/i2c-core-slave.c