diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2015-10-08 12:35:52 +0200 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2015-11-03 08:59:38 +0100 |
commit | 79653fbb3365002899e7d25ec5ca96aff4241ede (patch) | |
tree | 8a0cc66fcc1f0754211635339369b6e730e437b4 | |
parent | leds: netxbig: set led_classdev max_brightness (diff) | |
download | linux-79653fbb3365002899e7d25ec5ca96aff4241ede.tar.xz linux-79653fbb3365002899e7d25ec5ca96aff4241ede.zip |
leds-bcm6328: print invalid LED
Print invalid LED instead of warning only about maximum LED value.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
-rw-r--r-- | drivers/leds/leds-bcm6328.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-bcm6328.c b/drivers/leds/leds-bcm6328.c index 1793727bc9ae..e1c19557450f 100644 --- a/drivers/leds/leds-bcm6328.c +++ b/drivers/leds/leds-bcm6328.c @@ -373,7 +373,7 @@ static int bcm6328_leds_probe(struct platform_device *pdev) continue; if (reg >= BCM6328_LED_MAX_COUNT) { - dev_err(dev, "invalid LED (>= %d)\n", + dev_err(dev, "invalid LED (%u >= %d)\n", reg, BCM6328_LED_MAX_COUNT); continue; } |