]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
regulator: bd718x7: Use scoped device node handling to simplify error paths
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 14 Aug 2024 15:04:05 +0000 (17:04 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 14 Aug 2024 17:21:42 +0000 (18:21 +0100)
commit83c7cdeef5b22a73336eb18a59c7b4d63ec26659
treebe40c6faaeae83c70c9975304ccbc6eae75af744
parentb31274caf3993839e2eb266fe85ff5bcfd31292b
regulator: bd718x7: Use scoped device node handling to simplify error paths

Obtain the device node reference with scoped/cleanup.h and use scoped
for_each_child_of_node_scoped() to reduce error handling and make the
code a bit simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240814-cleanup-h-of-node-put-regulator-v1-1-87151088b883@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd718x7-regulator.c