diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2012-10-10 12:42:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-12 10:02:57 +0200 |
commit | 247022ec920dcd9d5a9750eee71a157ce4a65ad6 (patch) | |
tree | b73229928962825b2dbe329f550f7deb65efe2ca /include/param.h | |
parent | 1c0b9f395456465aeb09ec7ede95b58ce4d53e9e (diff) | |
download | barebox-247022ec920dcd9d5a9750eee71a157ce4a65ad6.tar.gz barebox-247022ec920dcd9d5a9750eee71a157ce4a65ad6.tar.xz |
parameter: support removing named parameters
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/param.h')
-rw-r--r-- | include/param.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/param.h b/include/param.h index e0c415d4f8..21f4f7d832 100644 --- a/include/param.h +++ b/include/param.h @@ -30,6 +30,8 @@ int dev_add_param(struct device_d *dev, const char *name, int dev_add_param_fixed(struct device_d *dev, char *name, char *value); +void dev_remove_param(struct device_d *dev, char *name); + void dev_remove_parameters(struct device_d *dev); int dev_param_set_generic(struct device_d *dev, struct param_d *p, @@ -67,6 +69,8 @@ static inline int dev_add_param_fixed(struct device_d *dev, char *name, char *va return 0; } +static inline void dev_remove_param(struct device_d *dev, char *name) {} + static inline void dev_remove_parameters(struct device_d *dev) {} static inline int dev_param_set_generic(struct device_d *dev, struct param_d *p, |