devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] leds: as3645a: Fix checkpatch warnings
@ 2017-12-12 21:50 Dan Murphy
       [not found] ` <20171212215011.30066-1-dmurphy-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Dan Murphy @ 2017-12-12 21:50 UTC (permalink / raw)
  To: robh+dt, mark.rutland, rpurdie, jacek.anaszewski, pavel,
	sakari.ailus, laurent.pinchart
  Cc: devicetree, linux-kernel, linux-leds, Dan Murphy

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

Signed-off-by: Dan Murphy <dmurphy@ti.com>
---
 drivers/leds/leds-as3645a.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c
index 9a257f969300..f883616d9e60 100644
--- a/drivers/leds/leds-as3645a.c
+++ b/drivers/leds/leds-as3645a.c
@@ -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;
 	}
 
-- 
2.15.0.124.g7668cbc60

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
       [not found] ` <20171212215011.30066-1-dmurphy-l0cyMroinI0@public.gmane.org>
@ 2017-12-12 23:35   ` Laurent Pinchart
  2017-12-13 12:56   ` Pavel Machek
  2017-12-13 20:29   ` Jacek Anaszewski
  2 siblings, 0 replies; 10+ messages in thread
From: Laurent Pinchart @ 2017-12-12 23:35 UTC (permalink / raw)
  To: Dan Murphy
  Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8,
	rpurdie-Fm38FmjxZ/leoWH0uzbU5w,
	jacek.anaszewski-Re5JQEeQqe8AvxtiuMwx3w, pavel-+ZI9xUNit7I,
	sakari.ailus-X3B1VOXEql0, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-leds-u79uwXL29TY76Z2rM5mHXA

Hi Dan,

Thank you for the patch.

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 <dmurphy-l0cyMroinI0@public.gmane.org>

Acked-by: Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>

> ---
>  drivers/leds/leds-as3645a.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c
> index 9a257f969300..f883616d9e60 100644
> --- a/drivers/leds/leds-as3645a.c
> +++ b/drivers/leds/leds-as3645a.c
> @@ -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;
>  	}


-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
       [not found] ` <20171212215011.30066-1-dmurphy-l0cyMroinI0@public.gmane.org>
  2017-12-12 23:35   ` Laurent Pinchart
@ 2017-12-13 12:56   ` Pavel Machek
  2017-12-13 20:29   ` Jacek Anaszewski
  2 siblings, 0 replies; 10+ messages in thread
From: Pavel Machek @ 2017-12-13 12:56 UTC (permalink / raw)
  To: Dan Murphy
  Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8,
	rpurdie-Fm38FmjxZ/leoWH0uzbU5w,
	jacek.anaszewski-Re5JQEeQqe8AvxtiuMwx3w,
	sakari.ailus-X3B1VOXEql0,
	laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-leds-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]

On Tue 2017-12-12 15:50:11, 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 <dmurphy-l0cyMroinI0@public.gmane.org>

Acked-by: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>

> ---
>  drivers/leds/leds-as3645a.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c
> index 9a257f969300..f883616d9e60 100644
> --- a/drivers/leds/leds-as3645a.c
> +++ b/drivers/leds/leds-as3645a.c
> @@ -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;
>  	}
>  


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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
       [not found] ` <20171212215011.30066-1-dmurphy-l0cyMroinI0@public.gmane.org>
  2017-12-12 23:35   ` Laurent Pinchart
  2017-12-13 12:56   ` Pavel Machek
@ 2017-12-13 20:29   ` Jacek Anaszewski
  2017-12-13 20:41     ` Dan Murphy
  2017-12-14 22:49     ` Pavel Machek
  2 siblings, 2 replies; 10+ messages in thread
From: Jacek Anaszewski @ 2017-12-13 20:29 UTC (permalink / raw)
  To: Dan Murphy, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	mark.rutland-5wv7dgnIgG8, rpurdie-Fm38FmjxZ/leoWH0uzbU5w,
	pavel-+ZI9xUNit7I, sakari.ailus-X3B1VOXEql0,
	laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-leds-u79uwXL29TY76Z2rM5mHXA

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.

-- 
Best regards,
Jacek Anaszewski

On 12/12/2017 10:50 PM, 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 <dmurphy-l0cyMroinI0@public.gmane.org>
> ---
>  drivers/leds/leds-as3645a.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c
> index 9a257f969300..f883616d9e60 100644
> --- a/drivers/leds/leds-as3645a.c
> +++ b/drivers/leds/leds-as3645a.c
> @@ -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;
>  	}
>  
> 

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
  2017-12-13 20:29   ` Jacek Anaszewski
@ 2017-12-13 20:41     ` Dan Murphy
  2017-12-13 20:43       ` Jacek Anaszewski
  2017-12-14 22:49     ` Pavel Machek
  1 sibling, 1 reply; 10+ messages in thread
From: Dan Murphy @ 2017-12-13 20:41 UTC (permalink / raw)
  To: Jacek Anaszewski, robh+dt, mark.rutland, rpurdie, pavel,
	sakari.ailus, laurent.pinchart
  Cc: devicetree, linux-kernel, linux-leds

Jacek

On 12/13/2017 02:29 PM, Jacek Anaszewski wrote:
> Hi Dan,
> 
> checkpatch.pl doesn't want to be mentioned in the patch subject :-)
> 

Ack

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

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


-- 
------------------
Dan Murphy

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
  2017-12-13 20:41     ` Dan Murphy
@ 2017-12-13 20:43       ` Jacek Anaszewski
  2017-12-13 20:49         ` Dan Murphy
  0 siblings, 1 reply; 10+ messages in thread
From: Jacek Anaszewski @ 2017-12-13 20:43 UTC (permalink / raw)
  To: Dan Murphy, robh+dt, mark.rutland, rpurdie, pavel, sakari.ailus,
	laurent.pinchart
  Cc: devicetree, linux-kernel, linux-leds

Dan,

On 12/13/2017 09:41 PM, Dan Murphy wrote:
> Jacek
> 
> On 12/13/2017 02:29 PM, Jacek Anaszewski wrote:
>> Hi Dan,
>>
>> checkpatch.pl doesn't want to be mentioned in the patch subject :-)
>>
> 
> Ack
> 
>> "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.

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

-- 
Best regards,
Jacek Anaszewski

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
  2017-12-13 20:43       ` Jacek Anaszewski
@ 2017-12-13 20:49         ` Dan Murphy
  2017-12-13 21:32           ` Laurent Pinchart
       [not found]           ` <799ae164-701a-87ce-fadf-8278f01c10d6-l0cyMroinI0@public.gmane.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Dan Murphy @ 2017-12-13 20:49 UTC (permalink / raw)
  To: Jacek Anaszewski, robh+dt, mark.rutland, rpurdie, pavel,
	sakari.ailus, laurent.pinchart
  Cc: devicetree, linux-kernel, linux-leds

Pavel and Laurent

On 12/13/2017 02:43 PM, Jacek Anaszewski wrote:
> Dan,
> 
> On 12/13/2017 09:41 PM, Dan Murphy wrote:
>> Jacek
>>
>> On 12/13/2017 02:29 PM, Jacek Anaszewski wrote:
>>> Hi Dan,
>>>
>>> checkpatch.pl doesn't want to be mentioned in the patch subject :-)
>>>
>>
>> Ack
>>
>>> "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.
> 

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

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


-- 
------------------
Dan Murphy

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
  2017-12-13 20:49         ` Dan Murphy
@ 2017-12-13 21:32           ` Laurent Pinchart
       [not found]           ` <799ae164-701a-87ce-fadf-8278f01c10d6-l0cyMroinI0@public.gmane.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Laurent Pinchart @ 2017-12-13 21:32 UTC (permalink / raw)
  To: Dan Murphy
  Cc: Jacek Anaszewski, robh+dt, mark.rutland, rpurdie, pavel,
	sakari.ailus, devicetree, linux-kernel, linux-leds

Hi Dan,

On Wednesday, 13 December 2017 22:49:38 EET Dan Murphy wrote:
> On 12/13/2017 02:43 PM, Jacek Anaszewski wrote:
> > On 12/13/2017 09:41 PM, Dan Murphy wrote:
> >> On 12/13/2017 02:29 PM, Jacek Anaszewski wrote:
> >>> Hi Dan,
> >>> 
> >>> checkpatch.pl doesn't want to be mentioned in the patch subject :-)
> >> 
> >> Ack
> >> 
> >>> "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.

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

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

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

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
  2017-12-13 20:29   ` Jacek Anaszewski
  2017-12-13 20:41     ` Dan Murphy
@ 2017-12-14 22:49     ` Pavel Machek
  1 sibling, 0 replies; 10+ messages in thread
From: Pavel Machek @ 2017-12-14 22:49 UTC (permalink / raw)
  To: Jacek Anaszewski
  Cc: Dan Murphy, robh+dt, mark.rutland, rpurdie, sakari.ailus,
	laurent.pinchart, devicetree, linux-kernel, linux-leds

[-- Attachment #1: Type: text/plain, Size: 491 bytes --]

On Wed 2017-12-13 21:29:29, Jacek Anaszewski wrote:
> 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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] leds: as3645a: Fix checkpatch warnings
       [not found]           ` <799ae164-701a-87ce-fadf-8278f01c10d6-l0cyMroinI0@public.gmane.org>
@ 2017-12-14 22:50             ` Pavel Machek
  0 siblings, 0 replies; 10+ messages in thread
From: Pavel Machek @ 2017-12-14 22:50 UTC (permalink / raw)
  To: Dan Murphy
  Cc: Jacek Anaszewski, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	mark.rutland-5wv7dgnIgG8, rpurdie-Fm38FmjxZ/leoWH0uzbU5w,
	sakari.ailus-X3B1VOXEql0,
	laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-leds-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]

On Wed 2017-12-13 14:49:38, Dan Murphy wrote:
> Pavel and Laurent
> 
> On 12/13/2017 02:43 PM, Jacek Anaszewski wrote:
> > Dan,
> > 
> > On 12/13/2017 09:41 PM, Dan Murphy wrote:
> >> Jacek
> >>
> >> On 12/13/2017 02:29 PM, Jacek Anaszewski wrote:
> >>> Hi Dan,
> >>>
> >>> checkpatch.pl doesn't want to be mentioned in the patch subject :-)
> >>>
> >>
> >> Ack
> >>
> >>> "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.
> > 
> 
> 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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-12-14 22:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-12 21:50 [PATCH] leds: as3645a: Fix checkpatch warnings Dan Murphy
     [not found] ` <20171212215011.30066-1-dmurphy-l0cyMroinI0@public.gmane.org>
2017-12-12 23:35   ` Laurent Pinchart
2017-12-13 12:56   ` Pavel Machek
2017-12-13 20:29   ` Jacek Anaszewski
2017-12-13 20:41     ` Dan Murphy
2017-12-13 20:43       ` Jacek Anaszewski
2017-12-13 20:49         ` Dan Murphy
2017-12-13 21:32           ` Laurent Pinchart
     [not found]           ` <799ae164-701a-87ce-fadf-8278f01c10d6-l0cyMroinI0@public.gmane.org>
2017-12-14 22:50             ` Pavel Machek
2017-12-14 22:49     ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).