]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit162c5a368fb788f040e9c51a1251ac36d80bff32
tree164bf23f7111d31206e076d996e8ef8ed3958d58
parent40a865500c4d408b552cf5899bf091ac72e32bf8
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