]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: as3722: Constify regulator ops
authorThierry Reding <treding@nvidia.com>
Thu, 7 Apr 2016 14:22:39 +0000 (16:22 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 11 Apr 2016 14:15:36 +0000 (15:15 +0100)
commitc171caf1a243aac4cb11c402aa939a50c0c8ed9b
tree164bf23f7111d31206e076d996e8ef8ed3958d58
parent7f5977fdfd76505e0d4b8fd772826765f1822f7a
regulator: as3722: Constify regulator ops

A const pointer to regulator ops is stored in regulator descriptors. The
operations never need to be modified, so define them as const as a hint
to the compiler that they can go into .rodata.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/as3722-regulator.c