Skip to contentSkip to conversation

leds: as3645a: Fix checkpatch warnings

PATCH In review Dan Murphy 4 participants 10 messages Dec 12, 2017 – Dec 14, 2017 LED

lore
Share & tools
lore

Dan Murphy

author
#0 lore raw

PATCH 1/1 leds: as3645a: Fix checkpatch warnings

Fix two checkpatch warnings for 80 char
length and for a quoted string across multiple
line warnings.

---
 drivers/leds/leds-as3645a.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/leds/leds-as3645a.c +4 -3
index 9a257f969300..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);
 }
@@ -455,8 +456,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
Acked-by on v1 1/1
#1 lore raw

Hi Dan,

Thank you for the patch.

Quoted 5 lines · On Tuesday, 12 December 2017 23:50:11 EET Dan Murphy wrote:

Fix two checkpatch warnings for 80 char
length and for a quoted string across multiple
line warnings.

Quoted 28 lines
---
 drivers/leds/leds-as3645a.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/leds/leds-as3645a.c +4 -3
index 9a257f969300..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);
 }
@@ -455,8 +456,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 · 8 lines
Regards,

Laurent Pinchart

--
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 v1 1/1
#2 lore raw
In reply to Dan Murphy
Quoted 5 lines · Dan Murphy

Fix two checkpatch warnings for 80 char
length and for a quoted string across multiple
line warnings.

Quoted 19 lines
---
 drivers/leds/leds-as3645a.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/leds/leds-as3645a.c +2 -1
index 9a257f969300..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);
 }

drivers/leds/leds-as3645a.c static int as3645a_detect(struct as3645a *flash) · line 463

Quoted 10 lines
drivers/leds/leds-as3645a.c +2 -2
@@ -455,8 +456,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;
 	}
 

(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

#3 lore raw
In reply to Dan Murphy

Hi Dan,

checkpatch.pl doesn't want to be mentioned in the patch subject :-)

"WARNING: A patch subject line should describe the change not the tool that found it"

Preferably I'd see two separate patches.

Also, line length limit for the commit description is 75 characters. Please use whole available space.

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

Fix two checkpatch warnings for 80 char
length and for a quoted string across multiple
line warnings.

---
 drivers/leds/leds-as3645a.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/leds/leds-as3645a.c +2 -1
index 9a257f969300..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);
 }

drivers/leds/leds-as3645a.c static int as3645a_detect(struct as3645a *flash) · line 463

Quoted 10 lines
drivers/leds/leds-as3645a.c +2 -2
@@ -455,8 +456,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;
 	}
 

--
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

author
#4 lore raw

Jacek

Quoted 4 lines · Jacek Anaszewski

Hi Dan,

checkpatch.pl doesn't want to be mentioned in the patch subject :-)

Ack

Quoted 5 lines

"WARNING: A patch subject line should describe the change not the tool that found it"

Preferably I'd see two separate patches.

So you want me to split them up? I have no issue with that.

Quoted 3 lines

Also, line length limit for the commit description is 75 characters. Please use whole available space.

Signature · 2 lines
------------------
Dan Murphy
#5 lore raw

Dan,

Quoted 10 lines · Dan Murphy

Jacek

Quoted 4 lines · Jacek Anaszewski

Hi Dan,

checkpatch.pl doesn't want to be mentioned in the patch subject :-)

Ack

Quoted 7 lines
Quoted 5 lines

"WARNING: A patch subject line should describe the change not the tool that found it"

Preferably I'd see two separate patches.

So you want me to split them up? I have no issue with that.

Yeah, it will be easier to come up with concise but meaningful subjects.

Quoted 5 lines
Quoted 3 lines

Also, line length limit for the commit description is 75 characters. Please use whole available space.

Signature · 2 lines
Best regards,
Jacek Anaszewski
author
#6 lore raw

Pavel and Laurent

Quoted 16 lines · Jacek Anaszewski

Dan,

Quoted 13 lines · Dan Murphy

Jacek

Quoted 4 lines · Jacek Anaszewski

Hi Dan,

checkpatch.pl doesn't want to be mentioned in the patch subject :-)

Ack

Quoted 3 lines

"WARNING: A patch subject line should describe the change not the tool that found it"

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Preferably I'd see two separate patches.

So you want me to split them up? I have no issue with that.

Yeah, it will be easier to come up with concise but meaningful subjects.

When I split these up can I add your Acked-by to each patch or would you prefer to resend your Acked-by for each patch?

Dan

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

Also, line length limit for the commit description is 75 characters. Please use whole available space.

Signature · 2 lines
------------------
Dan Murphy
#7 lore raw

Hi Dan,

Quoted 12 lines · On Wednesday, 13 December 2017 22:49:38 EET Dan Murphy wrote:
Quoted 11 lines · Jacek Anaszewski
Quoted 10 lines · Dan Murphy
Quoted 3 lines · Jacek Anaszewski

Hi Dan,

checkpatch.pl doesn't want to be mentioned in the patch subject :-)

Ack

Quoted 3 lines

"WARNING: A patch subject line should describe the change not the tool that found it"

Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Preferably I'd see two separate patches.

So you want me to split them up? I have no issue with that.

Yeah, it will be easier to come up with concise but meaningful subjects.

Well, given that one change splits a line that is too long and the other one merges two lines that fit within the limit we could come up with a message that covers both :-) This is nitpicking though, it doesn't matter much. I have no issue with a patch that has some "while at it" portion anyway as long as it's minor (I personally include white space fixes in patches that touch the related code for instance).

Quoted 2 lines

When I split these up can I add your Acked-by to each patch or would you prefer to resend your Acked-by for each patch?

Assuming you make no mistake, you can keep my ack :-) It will of course not cover the commit message then.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Also, line length limit for the commit description is 75 characters. Please use whole available space.

Signature · 3 lines
Regards,

Laurent Pinchart
#9 lore raw
In reply to Jacek Anaszewski
Quoted 6 lines · Jacek Anaszewski

Hi Dan,

checkpatch.pl doesn't want to be mentioned in the patch subject :-)

"WARNING: A patch subject line should describe the change not the tool that found it"

That is pretty stupid rule. Everyone and their dog knows what "checkpatch fixes" are.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#8 lore raw
In reply to Dan Murphy
Quoted 22 lines · Dan Murphy

Pavel and Laurent

Quoted 19 lines · Jacek Anaszewski

Dan,

Quoted 16 lines · Dan Murphy

Jacek

Quoted 4 lines · Jacek Anaszewski

Hi Dan,

checkpatch.pl doesn't want to be mentioned in the patch subject :-)

Ack

Quoted 5 lines

"WARNING: A patch subject line should describe the change not the tool that found it"

Preferably I'd see two separate patches.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

So you want me to split them up? I have no issue with that.

Yeah, it will be easier to come up with concise but meaningful subjects.

When I split these up can I add your Acked-by to each patch or would you prefer to resend your Acked-by for each patch?

You can keep the ack...

...and my preference would be for trivial fixes like these to be just applied. No need to resend 3 versions etc...
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html