[PATCH 1/8] regulator: Use container_of_const() when all types are const

Mark Brown broonie at kernel.org
Wed Nov 26 09:33:12 PST 2025


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20251126/85faaab6/attachment.sig>


More information about the Linux-mediatek mailing list