Messages in this thread Patch in this message | | | From | Mark Brown <> | Subject | [PATCH] regulator: Constify constraints name | Date | Fri, 14 Oct 2011 13:38:38 +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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index ce3127a..f3f13fd 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h @@ -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; -- 1.7.6.3
| |