summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-05-11 11:41:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-24 09:16:05 +0200
commit40e38042b7fa370a8221251b8efe21e2274c10cb (patch)
tree3d42e7f5bc02080bc2228db91e5c8d35861980e2
parent811cd961093c168648f349960762b98d7b337086 (diff)
downloadbarebox-40e38042b7fa370a8221251b8efe21e2274c10cb.tar.gz
barebox-40e38042b7fa370a8221251b8efe21e2274c10cb.tar.xz
param: fix stub prototype of dev_add_param
Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/param.h b/include/param.h
index 23abb52406..5eed97e38f 100644
--- a/include/param.h
+++ b/include/param.h
@@ -99,8 +99,8 @@ static inline struct param_d *get_param_by_name(struct device_d *dev,
}
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),
+ int (*set)(struct param_d *p, const char *val),
+ const char *(*get)(struct param_d *p),
unsigned long flags)
{
return ERR_PTR(-ENOSYS);