]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
regulator: Use container_of_const() when all types are
authorMark Brown <broonie@kernel.org>
Wed, 26 Nov 2025 21:21:57 +0000 (21:21 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 26 Nov 2025 21:21:57 +0000 (21:21 +0000)
Merge series from Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>:

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.

1  2 
MAINTAINERS
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/bd718x7-regulator.c
drivers/regulator/pca9450-regulator.c
drivers/regulator/pf9453-regulator.c

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge