Re: [PATCH v2 1/2] leds: flash: leds-qcom-flash: update torch current clamp setting
From: Konrad Dybcio
Date: Thu Jul 31 2025 - 05:33:53 EST
On 7/31/25 3:43 AM, Fenglin Wu wrote:
>
> 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!
Great, thank you for confirming
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad