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:
Benjamin Walsh 2016-01-26 16:37:12 -05:00 committed by Anas Nashif
commit bfc27206b2
59 changed files with 88 additions and 88 deletions

View file

@ -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), \