[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e0f827e0-1552-4542-ac70-70903227734e@oss.qualcomm.com>
Date: Thu, 31 Jul 2025 09:43:47 +0800
From: Fenglin Wu <fenglin.wu@....qualcomm.com>
To: Konrad Dybcio <konrad.dybcio@....qualcomm.com>, kernel@....qualcomm.com,
Lee Jones <lee@...nel.org>, Pavel Machek <pavel@...nel.org>
Cc: Subbaraman Narayanamurthy <subbaraman.narayanamurthy@....qualcomm.com>,
linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] leds: flash: leds-qcom-flash: update torch current
clamp setting
On 7/29/2025 7:01 PM, Konrad Dybcio wrote:
>> + torch_clamp = (current_ua / led->chan_count) / TORCH_IRES_UA;
>> + if (torch_clamp != 0)
>> + torch_clamp--;
>> +
>> + flash_data->torch_clamp = max_t(u8, flash_data->torch_clamp, torch_clamp);
> Please confirm if I understand correctly, we may have N flash LEDs
> connected, and this additional safety hardware can only compare any
> individual LED's current draw against a single maximum value, which
> we're setting here
Yes, your understanding is correct!
Powered by blists - more mailing lists