[PATCH 1/8] regulator: Use container_of_const() when all types are const
Krzysztof Kozlowski
krzysztof.kozlowski at oss.qualcomm.com
Wed Nov 26 09:37:49 PST 2025
On 26/11/2025 18:33, Mark Brown wrote:
> On Wed, Nov 26, 2025 at 05:58:44PM +0100, Krzysztof Kozlowski wrote:
>> Use container_of_const(), which is preferred over container_of(), when
>> the argument 'ptr' and returned pointer are already const, for better
>> code safety and readability.
>
> This doesn't apply against current code, please check and resend.
Apologies, I will rebase and send v2 today.
The files having trouble are I think in this pull:
https://lore.kernel.org/all/20251021172543.GL475031@google.com/
I will skip them for now.
Best regards,
Krzysztof
More information about the Linux-mediatek
mailing list