Re: [PATCH v4 2/4] iio: light: add support for veml6031x00 ALS series
From: Javier Carrasco
Date: Tue Jun 02 2026 - 07:50:49 EST
On Tue Jun 2, 2026 at 1:42 PM CEST, Javier Carrasco wrote:
>>> > Hmm... But why? Wouldn't this be problematic with reference count on the failed
>>> > devm_iio_device_register() below?
>>>
>>> I could move this a bit further down after devm_iio_device_register(),
>>> but as I replied to a Sashiko complaint, the reference count will never
>>> underflow in this configuration.
>>
>> Please, add a comment elaborating on that, it's not clear at glance.
>
> I will provide the link to the message where I explained this instead of
> copying the explanation to keep the discussion in one place. The mail
> belongs to the discussion thread for [2/4] (this patch) anyway:
>
> https://lore.kernel.org/all/20260531-veml6031x00-v4-0-e64f7fdce38d@xxxxxxxxx/
>
> Best regards,
> Javier
Sorry, I think I gave you the link to the cover letter, this is the
right one:
https://lore.kernel.org/all/DIXZFV822HRI.2SBIT7ADW9LUK@xxxxxxxxx/
The relevant information is at the very end.
Best regards,
Javier