Skip to content

Commit 8f47707

Browse files
andy-shevlag-linaro
authored andcommitted
leds: tca6507: Convert to use fwnode_device_is_compatible()
Replace open coded fwnode_device_is_compatible() in the driver. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 265d313 commit 8f47707

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/leds/leds-tca6507.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,7 @@ tca6507_led_dt_init(struct device *dev)
695695
&led.default_trigger);
696696

697697
led.flags = 0;
698-
if (fwnode_property_match_string(child, "compatible",
699-
"gpio") >= 0)
698+
if (fwnode_device_is_compatible(child, "gpio"))
700699
led.flags |= TCA6507_MAKE_GPIO;
701700

702701
ret = fwnode_property_read_u32(child, "reg", &reg);

0 commit comments

Comments
 (0)