]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: pca9450: Constify pointers to 'regulator_desc' wrap struct
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Wed, 26 Nov 2025 16:58:50 +0000 (17:58 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Nov 2025 18:44:31 +0000 (18:44 +0000)
commit03c3bdebaad23d6698a3cb8a11a915d8bdebf28f
tree1ae3c85ec042ddcb0d3636da6c9f124a26a90801
parent438e90a287c86253dbb47e7fa43c4474f91ee7eb
regulator: pca9450: 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-7-eeec378144d4@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pca9450-regulator.c