OSDN Git Service

regulator: hi6421: Remove unused fields from struct hi6421_regulator_info
authorAxel Lin <axel.lin@ingics.com>
Thu, 21 Aug 2014 02:31:33 +0000 (10:31 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 21 Aug 2014 14:49:57 +0000 (09:49 -0500)
commit8e820007caed7a03634fb14835a59bd0a232894d
treebd330920ca66e320acfc3e988dc71631edf97754
parentea62f4dfe329094cd988a73fe854c6f2e92dd486
regulator: hi6421: Remove unused fields from struct hi6421_regulator_info

The valid_modes_mask and *dev are not used in this driver, remove them.
Current code uses devm_regulator_register, so we don't need *regulator in
hi6421_regulator_info. Use a local variable instead.

Also removes a few unnecessary inclusion of header files.

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