projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265d313
)
leds: tca6507: Convert to use fwnode_device_is_compatible()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Thu, 19 Jan 2023 17:51:50 +0000
(19:51 +0200)
committer
Lee Jones
<lee@kernel.org>
Mon, 30 Jan 2023 08:03:43 +0000
(08:03 +0000)
Replace open coded fwnode_device_is_compatible() in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link:
https://lore.kernel.org/r/20230119175150.77250-1-andriy.shevchenko@linux.intel.com
drivers/leds/leds-tca6507.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-tca6507.c
b/drivers/leds/leds-tca6507.c
index 46e76b8946519aaf2dc36689ba17be2b987a2748..07dd12686a6962a5feb497bdf60ef3e41b01f7df 100644
(file)
--- a/
drivers/leds/leds-tca6507.c
+++ b/
drivers/leds/leds-tca6507.c
@@
-695,8
+695,7
@@
tca6507_led_dt_init(struct device *dev)
&led.default_trigger);
led.flags = 0;
- if (fwnode_property_match_string(child, "compatible",
- "gpio") >= 0)
+ if (fwnode_device_is_compatible(child, "gpio"))
led.flags |= TCA6507_MAKE_GPIO;
ret = fwnode_property_read_u32(child, "reg", ®);