[PATCH 4/4] param: fix stub prototype const annotation

Lucas Stach l.stach at pengutronix.de
Tue Apr 25 01:55:26 PDT 2017


Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 include/param.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/param.h b/include/param.h
index f9f3398cae51..23abb524068c 100644
--- a/include/param.h
+++ b/include/param.h
@@ -98,7 +98,7 @@ static inline struct param_d *get_param_by_name(struct device_d *dev,
 	return NULL;
 }
 
-static inline struct param_d *dev_add_param(struct device_d *dev, char *name,
+static inline struct param_d *dev_add_param(struct device_d *dev, const char *name,
 		int (*set)(struct device_d *dev, struct param_d *p, const char *val),
 		const char *(*get)(struct device_d *, struct param_d *p),
 		unsigned long flags)
-- 
2.11.0




More information about the barebox mailing list