Skip to content
Commit df01148a authored by Simon Guinot's avatar Simon Guinot Committed by Carles Cufí
Browse files

drivers: led_pwm: fix device name fallback



If the label property is missing in a "pwm-leds" compatible DT node
(which is almost always the case), then the device name is now set to
DT_NODE_FULL_NAME instead of "LED_PWM_$inst" previously.

This allows applications to use the DEVICE_DT_NAME macro to retrieve
the device name instead of gessing an arbitrary string.

Signed-off-by: default avatarSimon Guinot <simon.guinot@seagate.com>
parent 79a3a0f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment