* [PATCH] regulator: Constify constraints name
@ 2011-10-14 12:38 Mark Brown
0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2011-10-14 12:38 UTC (permalink / raw)
To: Liam Girdwood; +Cc: patches, linux-kernel, Mark Brown
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-14 12:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-14 12:38 [PATCH] regulator: Constify constraints name Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®