summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-11-28 07:38:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-28 15:21:26 +0100
commit0d5c1b9e971c72dfadee1813301af963e567e3d3 (patch)
tree122b68bfcd4ac46e949eff09bd19551832c8e1fc /include
parent36d808c9433617c593ee7a4caeb7e07b5a36edf4 (diff)
downloadbarebox-0d5c1b9e971c72dfadee1813301af963e567e3d3.tar.gz
barebox-0d5c1b9e971c72dfadee1813301af963e567e3d3.tar.xz
param: make string arguments to dev_add_param_fixed const
dev_add_param_fixed does not modify the strings, so make them const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/param.h b/include/param.h
index b8dd9b1869..53bee54110 100644
--- a/include/param.h
+++ b/include/param.h
@@ -67,7 +67,7 @@ struct param_d *dev_add_param_mac(struct device_d *dev, const char *name,
int (*get)(struct param_d *p, void *priv),
u8 *mac, void *priv);
-int dev_add_param_fixed(struct device_d *dev, char *name, const char *value);
+int dev_add_param_fixed(struct device_d *dev, const char *name, const char *value);
void dev_remove_param(struct param_d *p);
@@ -161,7 +161,7 @@ static inline struct param_d *dev_add_param_mac(struct device_d *dev, const char
return NULL;
}
-static inline int dev_add_param_fixed(struct device_d *dev, char *name, char *value)
+static inline int dev_add_param_fixed(struct device_d *dev, const char *name, const char *value)
{
return 0;
}