lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1ceb75c6-e65c-4c82-ba7f-7eb5dfb65018@gmail.com>
Date:   Thu, 9 Nov 2023 14:52:40 +0530
From:   Anshul Dalal <anshulusr@...il.com>
To:     Linus Walleij <linus.walleij@...aro.org>
Cc:     linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
        Conor Dooley <conor+dt@...nel.org>,
        Jonathan Cameron <jic23@...nel.org>,
        Lars-Peter Clausen <lars@...afoo.de>,
        Shuah Khan <skhan@...uxfoundation.org>,
        linux-kernel-mentees@...ts.linuxfoundation.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] iio: light: driver for Lite-On ltr390

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ