From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>, azkali.limited@gmail.com
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>, CTCaer <ctcaer@gmail.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, heikki.haikola@fi.rohmeurope.com
Subject: Re: [PATCH 2/2] iio: light: bh1730: Add bh1730 light sensor driver
Date: Mon, 11 May 2026 11:26:58 +0300 [thread overview]
Message-ID: <f089f090-4dcd-43ec-ab95-e425d4dd81fd@gmail.com> (raw)
In-Reply-To: <agDMWcCYLCvX8vy_@ashevche-desk.local>
On 10/05/2026 21:20, Andy Shevchenko wrote:
> On Sun, May 10, 2026 at 09:18:48PM +0300, Andy Shevchenko wrote:
>> On Mon, May 11, 2026 at 01:09:50AM +0700, Alexandre Hamamdjian via B4 Relay wrote:
>>
>>> Add a driver for the ROHM BH1730FVC ambient light sensor. The device
>>> is a 16-bit I2C digital sensor with separate visible and infrared
>>> photodiodes, four selectable gains (1x/2x/64x/128x) and a programmable
>>> integration time.
>>>
>>> The driver exposes illuminance via IIO, performs runtime gain and
>>> integration-time tracking to keep the ADC in range, and supports
>>> optional als-vdd / als-vid regulators. Per-board lux calibration data
>>> (integration cycles, lux multiplier, optical-window coefficients, and
>>> gain sensitivity coefficients) can be supplied via device tree;
>>> sensible defaults are used otherwise.
>>
>>> +#include <linux/delay.h>
>>> +#include <linux/i2c.h>
>>> +#include <linux/iio/iio.h>
>>> +#include <linux/module.h>
>>
>>> +#include <linux/of.h>
>>
>> Regular drivers do not to be OF-centric. This won't allow them to be used
>> outside of OF-only platforms.
>>
>>> +#include <linux/time.h>
>>> +#include <linux/regulator/consumer.h>
>>
>> Missing a lot of headers, follow IWYU.
>
> ...
>
>> Here I stop my review and recommend you first to review others' patches and
>> learn from other reviews. This will help you a lot with avoiding typical
>> mistakes.
>>
>> Also Matti would be the best reviewer for this as he worked (still works?)
>> for ROHM and knows the HW a bit more than average kernel developer.
>
> Forgot to Cc Matti since I mentioned him. Now done.
Thanks for pinging me :) I am not super familiar with this particular
sensor - original ROHM driver was written by my colleague Heikki, and
not by me. I will anyways take a look and provide what-ever input I can.
(I will also CC Heikki just in case, but he may not have the time to
look this further. Besides, the email client which can be used with
company email isn't really upstream compatible ;) ).
--
---
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~
next prev parent reply other threads:[~2026-05-11 8:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 18:09 [PATCH 0/2] iio: light: Add ROHM BH1730FVC ambient light sensor driver Alexandre Hamamdjian via B4 Relay
2026-05-10 18:09 ` [PATCH 1/2] dt-bindings: iio: light: Add ROHM BH1730FVC binding Alexandre Hamamdjian via B4 Relay
2026-05-11 8:22 ` Matti Vaittinen
2026-05-11 10:43 ` Matti Vaittinen
2026-05-11 15:14 ` Jonathan Cameron
2026-05-11 15:20 ` Jonathan Cameron
2026-05-10 18:09 ` [PATCH 2/2] iio: light: bh1730: Add bh1730 light sensor driver Alexandre Hamamdjian via B4 Relay
2026-05-10 18:18 ` Andy Shevchenko
2026-05-10 18:20 ` Andy Shevchenko
[not found] ` <CAL5cOWuXAD7+rJEKB9FjnwdCjoUJK+WNKXZXt8tfnq1WLmv5eg@mail.gmail.com>
2026-05-11 7:31 ` Andy Shevchenko
2026-05-11 8:26 ` Matti Vaittinen [this message]
2026-05-11 10:17 ` Matti Vaittinen
2026-05-11 15:50 ` Jonathan Cameron
2026-05-10 18:13 ` [PATCH 0/2] iio: light: Add ROHM BH1730FVC ambient " Andy Shevchenko
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=f089f090-4dcd-43ec-ab95-e425d4dd81fd@gmail.com \
--to=mazziesaccount@gmail.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=azkali.limited@gmail.com \
--cc=conor+dt@kernel.org \
--cc=ctcaer@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=heikki.haikola@fi.rohmeurope.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.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