diff options
author | Herve Codina <Herve.CODINA@celad.com> | 2014-06-12 11:37:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-13 06:27:34 +0200 |
commit | f2e86a2964f5454869a0d49069eb36fa25b09e94 (patch) | |
tree | ea701624672832e76508e17c84a64aded6b8cb8b /include/param.h | |
parent | aca00bb7196355a30b091253ea7ee3ed698ee082 (diff) | |
download | barebox-f2e86a2964f5454869a0d49069eb36fa25b09e94.tar.gz |
param: Add support for long long read only dev param
Signed-off-by: Herve Codina <Herve.CODINA@celad.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/param.h')
-rw-r--r-- | include/param.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/param.h b/include/param.h index eac3372f34..24827c5e78 100644 --- a/include/param.h +++ b/include/param.h @@ -49,6 +49,9 @@ struct param_d *dev_add_param_enum(struct device_d *dev, const char *name, struct param_d *dev_add_param_int_ro(struct device_d *dev, const char *name, int value, const char *format); +struct param_d *dev_add_param_llint_ro(struct device_d *dev, const char *name, + long long value, const char *format); + struct param_d *dev_add_param_ip(struct device_d *dev, const char *name, int (*set)(struct param_d *p, void *priv), int (*get)(struct param_d *p, void *priv), @@ -123,6 +126,12 @@ static inline struct param_d *dev_add_param_int_ro(struct device_d *dev, const c return NULL; } +static inline struct param_d *dev_add_param_llint_ro(struct device_d *dev, const char *name, + long long value, const char *format) +{ + return NULL; +} + static inline struct param_d *dev_add_param_ip(struct device_d *dev, const char *name, int (*set)(struct param_d *p, void *priv), int (*get)(struct param_d *p, void *priv), |