Skip to content

Commit 861e0f8

Browse files
andy-shevWolfram Sang
authored andcommitted
i2c: core: Replace custom implementation of device_match_fwnode()
Replace custom implementation of the device_match_fwnode(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent 1a1c74b commit 861e0f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/i2c/i2c-core-base.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,10 +1852,10 @@ EXPORT_SYMBOL_GPL(devm_i2c_add_adapter);
18521852

18531853
static int i2c_dev_or_parent_fwnode_match(struct device *dev, const void *data)
18541854
{
1855-
if (dev_fwnode(dev) == data)
1855+
if (device_match_fwnode(dev, data))
18561856
return 1;
18571857

1858-
if (dev->parent && dev_fwnode(dev->parent) == data)
1858+
if (dev->parent && device_match_fwnode(dev->parent, data))
18591859
return 1;
18601860

18611861
return 0;

0 commit comments

Comments
 (0)