summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-09-09 10:24:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-09 11:01:00 +0200
commit66bd3f1c4cc3b76ef40f95dd2ee5a5c60d22c446 (patch)
tree4bbbb17fb984278e15006a1223ee8a4a275e5beb
parentfb2e987ee1f54bc9fac26be03e93f839faa9e023 (diff)
downloadbarebox-66bd3f1c4cc3b76ef40f95dd2ee5a5c60d22c446.tar.gz
barebox-66bd3f1c4cc3b76ef40f95dd2ee5a5c60d22c446.tar.xz
param: make dev_add_param_string_fixed value parameter const
The function is so far unused and the parameter's only use is to be passed as argument to dev_add_param_fixed which is const as well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/param.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/param.h b/include/param.h
index b618a2305d..dea6990497 100644
--- a/include/param.h
+++ b/include/param.h
@@ -272,7 +272,7 @@ static inline struct param_d *dev_add_param_string_ro(struct device_d *dev, cons
}
static inline struct param_d *dev_add_param_string_fixed(struct device_d *dev, const char *name,
- char *value)
+ const char *value)
{
return dev_add_param_fixed(dev, name, value);
}