[PATCH 6/9] devparam: add static inline dummy for dev_add_param_bitmask
Lucas Stach
l.stach at pengutronix.de
Tue Dec 20 01:33:37 PST 2016
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
include/param.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/param.h b/include/param.h
index 0f7d2446a265..f5f82ee70c42 100644
--- a/include/param.h
+++ b/include/param.h
@@ -132,6 +132,14 @@ static inline struct param_d *dev_add_param_enum(struct device_d *dev, const cha
return ERR_PTR(-ENOSYS);
}
+static inline struct param_d *dev_add_param_bitmask(struct device_d *dev, const char *name,
+ int (*set)(struct param_d *p, void *priv),
+ int (*get)(struct param_d *p, void *priv),
+ unsigned long *value, const char * const *names, int max, void *priv)
+{
+ return ERR_PTR(-ENOSYS);
+}
+
static inline struct param_d *dev_add_param_bool(struct device_d *dev, const char *name,
int (*set)(struct param_d *p, void *priv),
int (*get)(struct param_d *p, void *priv),
--
2.11.0
More information about the barebox
mailing list