[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <c7526061-2f4e-4843-825c-98d9494af625@app.fastmail.com>
Date: Mon, 31 Jul 2023 17:38:59 +0200
From: "Arnd Bergmann" <arnd@...db.de>
To: "Svyatoslav Ryhel" <clamor95@...il.com>,
"Jonathan Cameron" <jic23@...nel.org>,
"Lars-Peter Clausen" <lars@...afoo.de>,
"Rob Herring" <robh+dt@...nel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@...aro.org>,
"Conor Dooley" <conor+dt@...nel.org>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"Samu Onkalo" <samu.p.onkalo@...ia.com>
Cc: linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 2/2] misc: adps990x: convert to OF
On Mon, Jul 31, 2023, at 16:58, Svyatoslav Ryhel wrote:
> 31 липня 2023 р. 16:18:16 GMT+03:00, Arnd Bergmann <arnd@...db.de> написав(-ла):
>>On Mon, Jul 31, 2023, at 13:02, Svyatoslav Ryhel wrote:
>>> Add ability to use device tree bindings keeping existing setup.
>>
>>I see that there are no more in-tree users of the old
>>apds990x_platform_data, so I think it would be best to completely
>>remove that codepath and merge that structure into struct
>>apds990x_chip, to simplify the probing and avoid the extra
>>allocation.
>
> Thank you very much for your review, but is it mandatory to drop pdata
> in this particular patch set? To be honest this driver needs serious
> upgrades and refactoring, and I have no dedication to invest my time
> into refactoring it, moreover, I am not a maintainer of this driver,
> nor a full time kernel maintainer of any kind. I am doing what I am
> doing only because one of my devices uses this als but it is not
> something crucial.
We have a lot of drivers that are lacking the cleanup I'm asking
for, so I don't think I'd mandate it at this point, but I don't
actually expect the patch to be any more complicated in the end,
so just try it out.
I think at the minimum, please remove the include/platform_data
header and move the contents into the driver itself, I'd be fine
with that. If you can easily do further cleanup by dropping
the separate allocation and folding the apds990x_fw_probe()
function back into apds990x_probe(), please do that, just stop
at the point where you feel it gets too complicated.
Arnd
Powered by blists - more mailing lists