Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753849AbdLMUac (ORCPT ); Wed, 13 Dec 2017 15:30:32 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34347 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753503AbdLMUa1 (ORCPT ); Wed, 13 Dec 2017 15:30:27 -0500 X-Google-Smtp-Source: ACJfBosGZWN7jqa3v6gUD9Wjzp68BFa6R8RovtCdz5ypKHAo+JfjnU+ZQ5hih+zPknAxU2xanjIofg== Subject: Re: [PATCH] leds: as3645a: Fix checkpatch warnings To: Dan Murphy , robh+dt@kernel.org, mark.rutland@arm.com, rpurdie@rpsys.net, pavel@ucw.cz, sakari.ailus@iki.fi, laurent.pinchart@ideasonboard.com References: <20171212215011.30066-1-dmurphy@ti.com> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org From: Jacek Anaszewski X-Enigmail-Draft-Status: N1110 Message-ID: Date: Wed, 13 Dec 2017 21:29:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20171212215011.30066-1-dmurphy@ti.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1570 Lines: 52 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 > --- > 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; > } > >