]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: pfuze100-regulator: constify regulator_ops structure
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 28 Jan 2017 15:08:57 +0000 (20:38 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 31 Jan 2017 20:58:27 +0000 (20:58 +0000)
commite5053853d8d7cd37275cc964bbc929e9e3c44c46
treee6c5dec0f3fad271871c807346ded6f5f86cfbfb
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7
regulator: pfuze100-regulator: constify regulator_ops structure

Declare regulator_ops structure as const as it is only stored in the ops
field of a regulator_desc structure. This field is of type const, so
regulator_ops structures having this property can be made const too.

File size before: drivers/regulator/pfuze100-regulator.o
   text    data     bss     dec     hex filename
   3552   12528      16   16096    3ee0 regulator/pfuze100-regulator.o

File size after: drivers/regulator/pfuze100-regulator.o
   text    data     bss     dec     hex filename
   4576   11496      16   16088    3ed8 regulator/pfuze100-regulator.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pfuze100-regulator.c