device: rename the device objects created by DEVICE_INIT()
Rename them from __initconfig_XXX to __device_XXX, which is more indicative of what they are. Change-Id: Ia63ae40c16a2b6f0413c37863cddc39f04839b72 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
dcfd4e96f4
commit
47c04f4ac2
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ extern "C" {
|
|||
.config_info = (cfg_info) \
|
||||
}; \
|
||||
\
|
||||
static struct device (__initconfig_##dev_name) __used \
|
||||
static struct device (__device_##dev_name) __used \
|
||||
__attribute__((__section__(".init_" #level STRINGIFY(prio)))) = { \
|
||||
.config = &(__config_##dev_name), \
|
||||
.driver_data = data \
|
||||
|
@ -103,7 +103,7 @@ extern "C" {
|
|||
*
|
||||
* @return The exanded name of the device object created by DEVICE_INIT()
|
||||
*/
|
||||
#define DEVICE_NAME_GET(name) (_CONCAT(__initconfig_, name))
|
||||
#define DEVICE_NAME_GET(name) (_CONCAT(__device_, name))
|
||||
|
||||
/**
|
||||
* @def DEVICE_GET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue