summaryrefslogtreecommitdiff
path: root/drivers/pwm/core.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-09-27 20:22:58 +0300
committerThierry Reding <thierry.reding@gmail.com>2022-09-28 16:54:25 +0200
commitb4319802867515ca6e492bff54879bc22a71a62c (patch)
tree757592414f5bb3fddb96bdf0f304099bbcf10191 /drivers/pwm/core.c
parentd632e864351ac3df3ab4bb224ba27b0634ce93be (diff)
downloadlwn-b4319802867515ca6e492bff54879bc22a71a62c.tar.gz
lwn-b4319802867515ca6e492bff54879bc22a71a62c.zip
pwm: core: Replace custom implementation of device_match_fwnode()
Replace custom implementation of the device_match_fwnode(). This hides the implementation details and makes future changes easier. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/core.c')
-rw-r--r--drivers/pwm/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 0e042410f6b9..ebb2c53ac7a7 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -678,7 +678,7 @@ static struct pwm_chip *fwnode_to_pwmchip(struct fwnode_handle *fwnode)
mutex_lock(&pwm_lock);
list_for_each_entry(chip, &pwm_chips, list)
- if (chip->dev && dev_fwnode(chip->dev) == fwnode) {
+ if (chip->dev && device_match_fwnode(chip->dev, fwnode)) {
mutex_unlock(&pwm_lock);
return chip;
}