regulator: core: Constify the regulator_desc passed in when registering
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Apr 2012 19:46:53 +0000 (20:46 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 4 Apr 2012 10:43:26 +0000 (11:43 +0100)
commit65f26846b90611742f3b407cc538a1cad33abde8
tree4da36021e30f3428f6382673eb45343450b78a03
parentdd775ae2549217d3ae09363e3edb305d0fa19928
regulator: core: Constify the regulator_desc passed in when registering

Drivers should be able to declare their descriptors const and the framework
shouldn't ever be modifying the desciptor. Make the parameter and the
pointer in regulator_dev const to enforce this.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c
include/linux/regulator/driver.h