regulator: max77620: Initialize values for DT properties
authorMark Zhang <markz@nvidia.com>
Thu, 10 Jan 2019 04:11:16 +0000 (12:11 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 10 Jan 2019 12:07:29 +0000 (12:07 +0000)
commit0ab66b3c326ef8f77dae9f528118966365757c0c
treee4b3bf798f5288a6b7b0c27090dccb3b96e352a9
parentd6afa2bed00486767fd5f3255cc89c05ccb70c0a
regulator: max77620: Initialize values for DT properties

If regulator DT node doesn't exist, its of_parse_cb callback
function isn't called. Then all values for DT properties are
filled with zero. This leads to wrong register update for
FPS and POK settings.

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Signed-off-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/regulator/max77620-regulator.c