]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Add back the const qualifier for ops of struct regulator_desc
authorAxel Lin <axel.lin@ingics.com>
Thu, 21 Aug 2014 02:11:34 +0000 (10:11 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 21 Aug 2014 14:49:08 +0000 (09:49 -0500)
commit91f796891cc83560a4e0cfdb17bba81e76e89877
tree19c21f5e9d1ec07206592a2b9df539dd47aa4da9
parentfd813ea65427816f4798c81763851acd88e155ab
regulator: core: Add back the const qualifier for ops of struct regulator_desc

Fix below build warning:
CC [M]  drivers/regulator/hi6421-regulator.o
drivers/regulator/hi6421-regulator.c:356:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]

This is a revert of commit f246f97ca82a ("regulator: core: Fix build error due
to const qualifier for ops"). The build error was fixed by commit fd813ea65427
("regulator: core: add const to regulator_ops and fix build error in mc13892").

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/linux/regulator/driver.h