mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
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>
This commit is contained in:
parent
7b9d9d8815
commit
79653fbb33
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user