From: Mark Brown Date: Wed, 26 Nov 2025 21:21:57 +0000 (+0000) Subject: regulator: Use container_of_const() when all types are X-Git-Tag: v6.19-rc1~151^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c67bb84434b024fa2ae83f91bbd02457f2d2c8a6;p=thirdparty%2Fkernel%2Flinux.git regulator: Use container_of_const() when all types are Merge series from Krzysztof Kozlowski : 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. Some drivers already have const everywhere, so container_of_const can be directly used. In few other drivers, the final pointer can be constified that way. --- c67bb84434b024fa2ae83f91bbd02457f2d2c8a6