regulator: Constify constraints name
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 14 Oct 2011 12:36:04 +0000 (13:36 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 14 Oct 2011 19:59:30 +0000 (20:59 +0100)
There's no need for the API to modify it and having it const makes it
easier to use with random strings the board code has.

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

index ce3127a..f3f13fd 100644 (file)
@@ -95,7 +95,7 @@ struct regulator_state {
  */
 struct regulation_constraints {
 
-       char *name;
+       const char *name;
 
        /* voltage output range (inclusive) - for voltage control */
        int min_uV;