]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8037ff4a922d6e580f5573d0c87e8195e74daa49
treea8afd1f923c4044a0fb26bd7907066fe5d92bd73
parent6f04befb7f4cc072a4b7e77ef9f6ad7b9e7c9664
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