Skip to contentSkip to conversation

regulator: Constify constraints name

PATCH New Mark Brown 1 participant 1 message Oct 14, 2011 Voltage and current regulator framework

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regulator: Constify constraints name

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.

---
 include/linux/regulator/machine.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/regulator/machine.h +1 -1
index ce3127a..f3f13fd 100644
@@ -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;
Signature · 1 line
1.7.6.3