state: make parameter functions more consistent
This replaces a dummy version dev_add_param_int() by a dummy version of
dev_add_param_uint32() to make the compiler happy and ports the following
barebox commit:

| commit c5d95eb
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date:   Fri Apr 7 11:57:08 2017 +0200
|
|     param: make parameter functions more consistent
|
|     This patch creates a consitent set of device parameter functions.
|
|     With this we have: dev_add_param_<type><access>
|
|     "type" is one of: int32, uint32, int64, uint64, string, mac, ipv4, enum,
|     bitmask
|     The improvement here is that we now can exactly specify the width of the
|     int type parameters and also correctly distinguish between signed and
|     unsigned variables which means that a variable no longer ends up with
|     INT_MAX when it's assigned -1.
|
|     "access" can be empty for regular read/write parameter, "_ro" for readonly
|     parameters which get their value from a variable pointer in the
|     background or "_fixed" for parameters which are set to a fixed value
|     (without a pointer in the background).
|
|     Some more exotic types are not (yet) implemented, like
|     dev_add_param_ip_ro.
|
|     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
1 parent 0f53e32 commit 52ffce4648f33dc81e4954400ef1c9fa88aa7192
@Ulrich Ölmann Ulrich Ölmann authored on 18 Dec 2018
Roland Hieber committed on 7 Jan 2019
Showing 2 changed files
View
src/barebox-state/state_variables.c
View
src/dt/common.h