]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: pf9453: Constify pointers to 'regulator_desc' wrap struct
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Wed, 26 Nov 2025 16:58:51 +0000 (17:58 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Nov 2025 18:44:32 +0000 (18:44 +0000)
commit6341646f7225343f57c8cbcb6a4d25b3270f4111
treed43c9c52caa80c561102e3d707a4f18f4f0ea0e4
parent03c3bdebaad23d6698a3cb8a11a915d8bdebf28f
regulator: pf9453: Constify pointers to 'regulator_desc' wrap struct

Pointer to 'struct regulator_desc' is a pointer to const and the
wrapping structure (container) is not being modified, thus entire syntax
can be replaced to preferred and safer container_of_const().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20251126-container-of-const-regulator-v1-8-eeec378144d4@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pf9453-regulator.c