]> 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)
commit7c8cafed7122b10b8bb607c9ae0e6cc3588313e3
tree9cc2ba90eda3568847f4b170fc3af872c00fb5dc
parentf28ea1cee6dfb686d8cb7de76cbc6794d013044f
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