]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: act8865: Convert to regulator core's simplified DT parsing code
authorAxel Lin <axel.lin@ingics.com>
Fri, 22 Mar 2019 06:38:19 +0000 (14:38 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 26 Mar 2019 13:59:40 +0000 (13:59 +0000)
commit4feebd910e46b275486f7a51947a2f99aa7a0fba
tree9cc2ba90eda3568847f4b170fc3af872c00fb5dc
parent9921691aa8104a1f20a4603ba15c157cadc955b8
regulator: act8865: Convert to regulator core's simplified DT parsing code

Use regulator core's simplified DT parsing code to simply the driver
implementation. With this conversion, also move the NULL test against pdata
in act8865_get_regulator_data() to the caller. This makes it clear the
code path to explicitly set init_data is for non-DT case only.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/act8865-regulator.c