From: Jonathan Cameron <jic23@kernel.org>
To: Andreas Klinger <ak@it-klinger.de>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
lars@metafoo.de, javier.carrasco.cruz@gmail.com,
mazziesaccount@gmail.com, arthur.becker@sentec.com,
perdaniel.olsson@axis.com, mgonellabolduc@dimonoff.com,
muditsharma.info@gmail.com, clamor95@gmail.com,
emil.gedenryd@axis.com, devicetree@vger.kernel.org,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/3] iio: light: add support for veml6046x00 RGBIR color sensor
Date: Sun, 25 May 2025 15:16:33 +0100 [thread overview]
Message-ID: <20250525151633.18b82382@jic23-huawei> (raw)
In-Reply-To: <aDLIHEj4lqlgargJ@mail.your-server.de>
On Sun, 25 May 2025 09:34:52 +0200
Andreas Klinger <ak@it-klinger.de> wrote:
> Hi Andy,
>
> thanks for the review. I have a question and a comment below.
>
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> schrieb am Mo, 19. Mai 14:04:
> > > +/*
> > > + * veml6046x00_gain_pd - translation from gain index (used in the driver) to
> > > + * gain (sensor) and PD
> > > + * @gain_sen: Gain used in the sensor as described in the datasheet of the
> > > + * sensor
> > > + * @pd: Photodiode size in the sensor
> >
> > This is made to look like kernel-doc, but it's not marked as a such, why?
>
> I'll remove the '@'
Better to make it kernel doc! That is add /** and check for
errors using scripts/kernel-doc
>
> ...
>
> > > + ret = regmap_clear_bits(data->regmap, VEML6046X00_REG_CONF0,
> > > + VEML6046X00_CONF0_ON_0);
> >
> > Something wrong with the indentation. Please, fix all places like this...
> >
> > > + if (ret) {
> > > + dev_err(dev, "Failed to set bit for power on %d\n", ret);
> > > + return ret;
> > > + }
> > > +
> > > + return regmap_clear_bits(data->regmap, VEML6046X00_REG_CONF1,
> > > + VEML6046X00_CONF1_ON_1);
> >
> > ...or like this.
> >
> > > +}
>
> I don't get the point what is wrong with the indentation. In the coding-style it
> says the decendant line should be placed to the right.
> Did i miss something?
Where there are no other constraints it should be aligned under the first parameter
on the line above.
return regmap_clear_bits(data->regmap, VEML6046X00_REG_CONF1,
VEML6046X00_CONF1_ON_1);
This is one of those things that has never been added explicitly to the coding style
doc because there lots of subtle corner cases where it isn't appropriate.
But all significantly to the right usually means is 1 tab or more.
Where possible most people prefer the above style.
Jonathan
>
> Best regards,
>
> Andreas
>
next prev parent reply other threads:[~2025-05-25 14:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-19 6:08 [PATCH v4 0/3] iio:light: add driver for veml6046x00 RGBIR color sensor Andreas Klinger
2025-05-19 6:08 ` [PATCH v4 1/3] dt-bindings: iio: light: veml6046x00: add " Andreas Klinger
2025-05-19 6:08 ` [PATCH v4 2/3] iio: light: add support for veml6046x00 RGBIR " Andreas Klinger
2025-05-19 11:04 ` Andy Shevchenko
2025-05-25 7:34 ` Andreas Klinger
2025-05-25 14:16 ` Jonathan Cameron [this message]
2025-05-25 14:30 ` Jonathan Cameron
2025-05-19 6:08 ` [PATCH v4 3/3] MAINTAINER: add maintainer for veml6046x00 Andreas Klinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250525151633.18b82382@jic23-huawei \
--to=jic23@kernel.org \
--cc=ak@it-klinger.de \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arthur.becker@sentec.com \
--cc=clamor95@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=emil.gedenryd@axis.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mazziesaccount@gmail.com \
--cc=mgonellabolduc@dimonoff.com \
--cc=muditsharma.info@gmail.com \
--cc=perdaniel.olsson@axis.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox