device: rename DECLARE_DEVICE_INIT_CONFIG()
Rename it to DEVICE_INIT_CONFIG_DEFINE(), because (a) it was not fitting in any namespace and (b) it is not used to declare, but rather define a object. Change-Id: I1da5822f06b85a9fb024b5b184afd0ccc01012ec Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
bd18487727
commit
bfc27206b2
59 changed files with 88 additions and 88 deletions
|
@ -22,7 +22,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** @def DECLARE_DEVICE_INIT_CONFIG
|
||||
/** @def DEVICE_INIT_CONFIG_DEFINE
|
||||
*
|
||||
* @brief Define an config object
|
||||
*
|
||||
|
@ -42,7 +42,7 @@ extern "C" {
|
|||
*
|
||||
* @sa __define_initconfig()
|
||||
*/
|
||||
#define DECLARE_DEVICE_INIT_CONFIG(cfg_name, drv_name, init_fn, config) \
|
||||
#define DEVICE_INIT_CONFIG_DEFINE(cfg_name, drv_name, init_fn, config) \
|
||||
static struct device_config config_##cfg_name __used \
|
||||
__attribute__((__section__(".devconfig.init"))) = { \
|
||||
.name = drv_name, .init = (init_fn), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue