]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
regulator: 88pm8607: constify regulator_ops structure
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 28 Jan 2017 13:28:34 +0000 (18:58 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 31 Jan 2017 20:32:53 +0000 (20:32 +0000)
commit32cb5d30cf4948e74be3dda5fd85781bc8eb9d49
tree2018145fab7595f07db3daef6d54daa3dcae1efa
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7
regulator: 88pm8607: constify regulator_ops structure

Declare regulator_ops structures 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/88pm8607.o
   text    data     bss     dec     hex filename
   3466    5488       0    8954    22fa drivers/regulator/88pm8607.o

File size after: drivers/regulator/88pm8607.o
   text    data     bss     dec     hex filename
   3978    4976       0    8954    22fa drivers/regulator/88pm8607.o

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