summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-04-25 10:55:26 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-26 08:45:00 +0200
commit49c2421feecf7402f69f4d0ea82004c0c5ee1746 (patch)
treee4195d0e8480a29e85b97df57eec87662aff6dd3
parent381fa8c5fbadc53a181202a9e23493c95dc2757c (diff)
downloadbarebox-49c2421feecf7402f69f4d0ea82004c0c5ee1746.tar.gz
param: fix stub prototype const annotation
Signed-off-by: Lucas Stach <l.stach@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 f9f3398..23abb52 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)