regulator: lp87565: Simplify lp87565_buck_set_ramp_delay
authorAxel Lin <axel.lin@ingics.com>
Sun, 8 Sep 2019 03:57:20 +0000 (11:57 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2019 12:22:49 +0000 (13:22 +0100)
commit6cadd8ae213678be654042ff8655630d84272ec3
treecf5ab4fb8c8d65d0773f1c250b172bab798e314e
parentc0b913447b75538c3cf4b8016fd2e06509895020
regulator: lp87565: Simplify lp87565_buck_set_ramp_delay

Use rdev->regmap/&rdev->dev instead of lp87565->regmap/lp87565->dev.
In additional, the lp87565->dev actually is the parent mfd device,
so the dev_err message is misleading here with lp87565->dev.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20190908035720.17748-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp87565-regulator.c