]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
regulator: s2mps11: use scoped memory allocation to simplify probe
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 22 Aug 2024 16:12:31 +0000 (18:12 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 22 Aug 2024 16:52:31 +0000 (17:52 +0100)
commitb8195520e8b486a0922b4baf511a2fd19bbfc25f
tree604d0cf2762a67117cf4e0ebf3cdab1358d77394
parent5a38089fe4438a587291ccf932178ed8cdbdde28
regulator: s2mps11: use scoped memory allocation to simplify probe

Allocate the memory with scoped/cleanup.h to reduce error handling (less
error paths) and make the code a bit simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240822161231.106744-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2mps11.c