[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200315111627.GA21240@ravnborg.org>
Date: Sun, 15 Mar 2020 12:16:27 +0100
From: Sam Ravnborg <sam@...nborg.org>
To: Tobias Schramm <t.schramm@...jaro.org>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Sebastian Reichel <sre@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Daniel Thompson <daniel.thompson@...aro.org>,
Maxime Ripard <mripard@...nel.org>,
Heiko Stuebner <heiko.stuebner@...obroma-systems.com>,
Stephan Gerhold <stephan@...hold.net>,
Mark Brown <broonie@...nel.org>,
Mauro Carvalho Chehab <mchehab+samsung@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 3/3] power: supply: add CellWise cw2015 fuel gauge
driver
Hi Tobias.
On Sun, Mar 15, 2020 at 12:00:35PM +0100, Tobias Schramm wrote:
> Hi Andy,
>
> thanks for your feedback. Please find my comments inline.
>
> >
> >> + dev_err(cw_bat->dev,
> >> + "Failed to upload battery info\n");
> >
> > Indentation of the second line.
> >
> I've seen quite a few different indentation styles used in kernel
> source. Personally I'd indent like this:
>
> dev_warn(cw_bat->dev,
> "some long error message");
>
> However coding-style.rst specifies that spaces are never to be used for
> indentation. May I assume they are ok for alignment though?
Indent with tabs and align with spaces.
So this becomes
< tab >< tab >dev_warn(cw_bat->dev,
< tab >< tab ><tab >_"some long error message");
Where '_' represents a space.
This is the recommend kernel practice.
Sam
Powered by blists - more mailing lists