summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorBenjamin Walsh <benjamin.walsh@windriver.com>2016-01-26 16:37:12 -0500
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:25:25 -0500
commitbfc27206b22e98bf5d141ca6da3ce73fb05cc519 (patch)
treeb9257163fb8c131645cbfad589b263ee51880146 /samples
parentbd1848772716b8dafd13a7ab0e86ebe6a46cb2e1 (diff)
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>
Diffstat (limited to 'samples')
-rw-r--r--samples/nanokernel/test/test_ipm/src/test_ipm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/nanokernel/test/test_ipm/src/test_ipm.c b/samples/nanokernel/test/test_ipm/src/test_ipm.c
index 26e7bfa71..ddbde1fbb 100644
--- a/samples/nanokernel/test/test_ipm/src/test_ipm.c
+++ b/samples/nanokernel/test/test_ipm/src/test_ipm.c
@@ -40,7 +40,7 @@
/* Set up the dummy IPM driver */
struct ipm_dummy_driver_data ipm_dummy0_driver_data;
-DECLARE_DEVICE_INIT_CONFIG(ipm_dummy0, "ipm_dummy0", ipm_dummy_init, NULL);
+DEVICE_INIT_CONFIG_DEFINE(ipm_dummy0, "ipm_dummy0", ipm_dummy_init, NULL);
SYS_DEFINE_DEVICE(ipm_dummy0, &ipm_dummy0_driver_data, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
@@ -51,7 +51,7 @@ struct ipm_console_sender_config_info sender_config = {
.bind_to = "ipm_dummy0",
.flags = SOURCE
};
-DECLARE_DEVICE_INIT_CONFIG(ipm_console_send0, "ipm_send0",
+DEVICE_INIT_CONFIG_DEFINE(ipm_console_send0, "ipm_send0",
ipm_console_sender_init, &sender_config);
SYS_DEFINE_DEVICE(ipm_console_send0, NULL, NANOKERNEL,
INIT_PRIO_IPM_SEND);
@@ -78,7 +78,7 @@ struct ipm_console_receiver_config_info receiver_config = {
};
struct ipm_console_receiver_runtime_data receiver_data;
-DECLARE_DEVICE_INIT_CONFIG(ipm_console_recv0, "ipm_recv0",
+DEVICE_INIT_CONFIG_DEFINE(ipm_console_recv0, "ipm_recv0",
ipm_console_receiver_init, &receiver_config);
SYS_DEFINE_DEVICE(ipm_console_recv0, &receiver_data, NANOKERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);