Skip to content
Commit df11e506 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

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 716845eb ("regulator: core: Fix build error due
to const qualifier for ops"). The build error was fixed by commit 39f5460d


("regulator: core: add const to regulator_ops and fix build error in mc13892").

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 39f5460d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment