regulator: anatop: Remove unneeded fields from struct anatop_regulator
authorAxel Lin <axel.lin@ingics.com>
Tue, 9 Apr 2019 16:10:39 +0000 (00:10 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Apr 2019 11:23:04 +0000 (12:23 +0100)
commitf34a269229ec0d51f84f557238d1e4dcda8464d2
treea8afd1f923c4044a0fb26bd7907066fe5d92bd73
parent6e1f22ee7e4874c357a95a87f3ebc6eb093562dc
regulator: anatop: Remove unneeded fields from struct anatop_regulator

These fields are only used in anatop_regulator_probe() so use local
variables instead. The *initdata is not used so can be removed.
The *anatop is renamed to *regmap for better readability.
Use u32 instead of int for the variables used as third argument of
of_property_read_u32().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/anatop-regulator.c