Commit 8f47707a authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Lee Jones

leds: tca6507: Convert to use fwnode_device_is_compatible()

Replace open coded fwnode_device_is_compatible() in the driver.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230119175150.77250-1-andriy.shevchenko@linux.intel.com
parent 265d313e
......@@ -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", &reg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment