From: Anshul Dalal <anshulusr@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Shuah Khan <skhan@linuxfoundation.org>,
linux-kernel-mentees@lists.linuxfoundation.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] iio: light: driver for Lite-On ltr390
Date: Thu, 9 Nov 2023 14:52:40 +0530 [thread overview]
Message-ID: <1ceb75c6-e65c-4c82-ba7f-7eb5dfb65018@gmail.com> (raw)
In-Reply-To: <CACRpkdYtawfonnkGXzTD65fx4CMbbTaXe359tm7=57saHSNfqA@mail.gmail.com>
Hello Linus,
On 11/9/23 14:49, Linus Walleij wrote:
> Hi Anshul,
>
> thanks for your patch!
>
> Overall this looks good to me.
>
> On Thu, Nov 9, 2023 at 10:07 AM Anshul Dalal <anshulusr@gmail.com> wrote:
>
>> Implements driver for the Ambient/UV Light sensor LTR390.
>> The driver exposes two ways of getting sensor readings:
>> 1. Raw UV Counts directly from the sensor
>> 2. The computed UV Index value with a percision of 2 decimal places
>>
>> NOTE: Ambient light sensing has not been implemented yet.
>>
>> Datasheet:
>> https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf
>>
>> Driver tested on RPi Zero 2W
>>
>> Signed-off-by: Anshul Dalal <anshulusr@gmail.com>
> (...)
>
>> +#define LTR390_FRCTIONAL_PERCISION 100
>
> This define is just too hard for me to read, can you rename it?
>
> Does it mean LTR390_FRACTIONAL_PRECISION? It's fine to spell it out like
> that instead.
Yes indeed, that typo would be fixed in the next revision.
Thanks for the review.
Best wishes,
Anshul
next prev parent reply other threads:[~2023-11-09 9:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 9:04 [PATCH 1/2] dt-bindings: iio: light: add ltr390 Anshul Dalal
2023-11-09 9:04 ` [PATCH 2/2] iio: light: driver for Lite-On ltr390 Anshul Dalal
2023-11-09 9:19 ` Linus Walleij
2023-11-09 9:22 ` Anshul Dalal [this message]
2023-11-09 10:27 ` [PATCH 1/2] dt-bindings: iio: light: add ltr390 Krzysztof Kozlowski
2023-11-09 10:35 ` Anshul Dalal
2023-11-09 13:56 ` Krzysztof Kozlowski
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=1ceb75c6-e65c-4c82-ba7f-7eb5dfb65018@gmail.com \
--to=anshulusr@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=skhan@linuxfoundation.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