OSDN Git Service

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)
commit253c9c79adbcf79350cb1ae1c801f8df00186455
tree9cc2ba90eda3568847f4b170fc3af872c00fb5dc
parent883ce2421ed7fc1aaf94ff58d099e9a843345dfa
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