leds: as3645a: Fix checkpatch warnings
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
@@ -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
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.Signed-off-by Dan Murphy <[email protected]>
Quoted 28 lines
--- drivers/leds/leds-as3645a.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/leds/leds-as3645a.c +4
-3@@ -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
Quoted 5 lines · Dan Murphy
Fix two checkpatch warnings for 80 char
length and for a quoted string across multiple
line warnings.Signed-off-by Dan Murphy <[email protected]>
Quoted 19 lines
--- drivers/leds/leds-as3645a.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/leds/leds-as3645a.c +2
-1@@ -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
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.Signed-off-by Dan Murphy <[email protected]>--- drivers/leds/leds-as3645a.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/leds/leds-as3645a.c +2
-1@@ -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
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
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
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
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
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
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