regulator: anatop: use of_property_read_string to read the name
authorDong Aisheng <aisheng.dong@nxp.com>
Wed, 12 Apr 2017 01:58:44 +0000 (09:58 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 11 Apr 2017 20:35:58 +0000 (21:35 +0100)
commit5062e04711dbc4f67b24ffd926cc67060267792d
tree1c1acf762f841a82150ea21c9cd473aab3e5b36e
parent7f51cf2ea7186e3f217e616a5522f1156678356f
regulator: anatop: use of_property_read_string to read the name

sreg->name is a string, so use a more proper api to read back the string
instead of of_get_property.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/anatop-regulator.c