diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2019-02-03 22:47:56 +0100 |
---|---|---|
committer | Roland Hieber <rhi@pengutronix.de> | 2019-02-07 12:34:15 +0100 |
commit | 6ae166207bc8a31d0b75ca23bcca848751e3df78 (patch) | |
tree | 3c96cabc3671ec88b9ea8eba91e5421eeccf62f4 | |
parent | a927ee527036e051c8fe07c6e4673df4ba9623c0 (diff) | |
download | dt-utils-6ae166207bc8a31d0b75ca23bcca848751e3df78.tar.gz dt-utils-6ae166207bc8a31d0b75ca23bcca848751e3df78.tar.xz |
common: align declarations of dev_add_param_*() functions with barebox
The only remaining difference is the argument "value" in dev_add_param_enum()
which is of type int* in barebox and got type uint32_t* here to not let the
compiler warn about assignment of pointers of different signedness.
There is no such warning when compiling barebox as it's applying the compiler
option "-Wno-pointer-sign" in its main makefile.
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
-rw-r--r-- | src/dt/common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dt/common.h b/src/dt/common.h index de8d293..c3c4f53 100644 --- a/src/dt/common.h +++ b/src/dt/common.h @@ -368,7 +368,7 @@ struct device_d { static inline struct param_d *dev_add_param_enum(struct device_d *dev, const char *name, int (*set)(struct param_d *p, void *priv), int (*get)(struct param_d *p, void *priv), - int *value, const char **names, int max, void *priv) + uint32_t *value, const char * const *names, int max, void *priv) { return NULL; @@ -377,7 +377,7 @@ static inline struct param_d *dev_add_param_enum(struct device_d *dev, const cha 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), - int *value, void *priv) + uint32_t *value, void *priv) { return NULL; } @@ -385,7 +385,7 @@ static inline struct param_d *dev_add_param_bool(struct device_d *dev, const cha static inline struct param_d *dev_add_param_mac(struct device_d *dev, const char *name, int (*set)(struct param_d *p, void *priv), int (*get)(struct param_d *p, void *priv), - uint8_t *mac, void *priv) + u8 *mac, void *priv) { return NULL; } @@ -401,7 +401,7 @@ static inline struct param_d *dev_add_param_string(struct device_d *dev, const c static inline struct param_d *dev_add_param_uint32(struct device_d *dev, const char *name, int (*set)(struct param_d *p, void *priv), int (*get)(struct param_d *p, void *priv), - int *value, const char *format, void *priv) + uint32_t *value, const char *format, void *priv) { return NULL; } |