]> 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)
commit06d7cc584d619529603db37b7a741b3966375d64
treea8afd1f923c4044a0fb26bd7907066fe5d92bd73
parent95fa5b6b497049ae1279ad72a7a0053c7376e7e3
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