Skip to content

Commit

Permalink
regulator: Constify constraints name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Oct 14, 2011
1 parent d1685e4 commit 0151546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/regulator/machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0151546

Please sign in to comment.