projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d632e86
)
pwm: core: Replace custom implementation of device_match_fwnode()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Tue, 27 Sep 2022 17:22:58 +0000
(20:22 +0300)
committer
Thierry Reding
<thierry.reding@gmail.com>
Wed, 28 Sep 2022 14:54:25 +0000
(16:54 +0200)
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>
drivers/pwm/core.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/core.c
b/drivers/pwm/core.c
index 0e042410f6b977e03084ce2cf3082dbb2960e624..ebb2c53ac7a74666d58aa84d28dceb6605e93c1a 100644
(file)
--- 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 && dev
ice_match_fwnode(chip->dev, fwnode)
) {
mutex_unlock(&pwm_lock);
return chip;
}