Re: [PATCH v2 1/2] leds: flash: leds-qcom-flash: update torch current clamp setting

From: Fenglin Wu
Date: Wed Jul 30 2025 - 21:44:04 EST



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!