leds: lm3532: add pointer to documentation and fix typo
authorPavel <pavel@ucw.cz>
Sun, 5 Jan 2020 22:36:58 +0000 (23:36 +0100)
committerPavel <pavel@ucw.cz>
Sun, 5 Jan 2020 23:16:01 +0000 (00:16 +0100)
Add pointer to datasheet and fix typo in printk message.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lm3532.c

index 23f49b6d1925f873af8bab477b9621e5b2e5914d..188a57da981a71145d017a761d31d75972eb7005 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 // TI LM3532 LED driver
 // Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
+// http://www.ti.com/lit/ds/symlink/lm3532.pdf
 
 #include <linux/i2c.h>
 #include <linux/leds.h>
@@ -629,7 +630,7 @@ static int lm3532_parse_node(struct lm3532_data *priv)
 
                led->num_leds = fwnode_property_count_u32(child, "led-sources");
                if (led->num_leds > LM3532_MAX_LED_STRINGS) {
-                       dev_err(&priv->client->dev, "To many LED string defined\n");
+                       dev_err(&priv->client->dev, "Too many LED string defined\n");
                        continue;
                }