Skip to contentSkip to conversation

leds: as3645a: Fix quoted string split warning

PATCH In review Dan Murphy 3 participants 4 messages Dec 14, 2017 LED

lore
Share & tools
lore

Dan Murphy

author
#0 lore raw

PATCH v2 1/2 leds: as3645a: Fix quoted string split warning

Fix a warning for a split quoted string across
lines.

WARNING: quoted string split across lines
459: FILE: drivers/leds/leds-as3645a.c:459:

		dev_err(dev, "AS3645A not detected "
			"(model %d rfu %d)\n", model, rfu);

---

v2 - Split the warning fixes into 2 patches and fixed commit message -
https://patchwork.kernel.org/patch/10108325/

 drivers/leds/leds-as3645a.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/leds/leds-as3645a.c +2 -2
index 9a257f969300..49fdd7c0a6f6 100644
@@ -455,8 +455,8 @@ static int as3645a_detect(struct as3645a *flash)
 
 	/* Verify the chip model and version. */
 	if (model != 0x01 || rfu != 0x00) {
-		dev_err(dev, "AS3645A not detected "
-			"(model %d rfu %d)\n", model, rfu);
+		dev_err(dev, "AS3645A not detected (model %d rfu %d)\n",
+			model, rfu);
 		return -ENODEV;
 	}
 
Signature · 1 line
2.15.0.124.g7668cbc60
author
#1 lore raw

PATCH v2 2/2 leds: as3645a: Fix line over 80 characters

Fix the warning for line over 80 characters.

WARNING: line over 80 characters
363: FILE: drivers/leds/leds-as3645a.c:363:

	flash->flash_current = as3645a_current_to_reg(flash, true, brightness_ua);

---

v2 - Split the warning fixes into 2 patches and fixed commit message -
https://patchwork.kernel.org/patch/10108325/

 drivers/leds/leds-as3645a.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/leds/leds-as3645a.c +2 -1
index 49fdd7c0a6f6..f883616d9e60 100644
@@ -360,7 +360,8 @@ static int as3645a_set_flash_brightness(struct led_classdev_flash *fled,
 {
 	struct as3645a *flash = fled_to_as3645a(fled);
 
-	flash->flash_current = as3645a_current_to_reg(flash, true, brightness_ua);
+	flash->flash_current = as3645a_current_to_reg(flash, true,
+						      brightness_ua);
 
 	return as3645a_set_current(flash);
 }
Signature · 6 lines
2.15.0.124.g7668cbc60

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by on v2 1/2
#2 lore raw
In reply to Dan Murphy
Quoted 10 lines · Dan Murphy

Fix a warning for a split quoted string across
lines.

WARNING: quoted string split across lines
459: FILE: drivers/leds/leds-as3645a.c:459:

		dev_err(dev, "AS3645A not detected "
			"(model %d rfu %d)\n", model, rfu);

Thanks!

For both:

Signature · 2 lines
Sakari Ailus
e-mail: [email protected]
#3 lore raw
In reply to Dan Murphy

Hi Dan,

Thanks for the patch set.
Bot patches applied to the for-next branch.

Signature · 2 lines
Best regards,
Jacek Anaszewski
Quoted 34 lines · Dan Murphy

Fix a warning for a split quoted string across
lines.

WARNING: quoted string split across lines
459: FILE: drivers/leds/leds-as3645a.c:459:

		dev_err(dev, "AS3645A not detected "
			"(model %d rfu %d)\n", model, rfu);

---

v2 - Split the warning fixes into 2 patches and fixed commit message -
https://patchwork.kernel.org/patch/10108325/

 drivers/leds/leds-as3645a.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/leds/leds-as3645a.c +2 -2
index 9a257f969300..49fdd7c0a6f6 100644
@@ -455,8 +455,8 @@ static int as3645a_detect(struct as3645a *flash)
 
 	/* Verify the chip model and version. */
 	if (model != 0x01 || rfu != 0x00) {
-		dev_err(dev, "AS3645A not detected "
-			"(model %d rfu %d)\n", model, rfu);
+		dev_err(dev, "AS3645A not detected (model %d rfu %d)\n",
+			model, rfu);
 		return -ENODEV;
 	}