diff options
Diffstat (limited to 'drivers/leds/leds-lp5523.c')
-rw-r--r-- | drivers/leds/leds-lp5523.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c index 0cc4ead2fd8b..6cb41607519d 100644 --- a/drivers/leds/leds-lp5523.c +++ b/drivers/leds/leds-lp5523.c | |||
@@ -870,7 +870,8 @@ static int __init lp5523_init_led(struct lp5523_led *led, struct device *dev, | |||
870 | return -EINVAL; | 870 | return -EINVAL; |
871 | } | 871 | } |
872 | 872 | ||
873 | snprintf(name, 32, "lp5523:channel%d", chan); | 873 | snprintf(name, sizeof(name), "%s:channel%d", |
874 | pdata->label ?: "lp5523", chan); | ||
874 | 875 | ||
875 | led->cdev.name = name; | 876 | led->cdev.name = name; |
876 | led->cdev.brightness_set = lp5523_set_brightness; | 877 | led->cdev.brightness_set = lp5523_set_brightness; |