summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorBenjamin Walsh <benjamin.walsh@windriver.com>2016-01-26 16:40:37 -0500
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:25:25 -0500
commit0303d8cab979b1132a11139bd3633c12740f7c10 (patch)
tree71b969f3dc47bf6dc8ef8e74dae8d09bf18d414d /samples
parent2ee9aca31a39e9e614d06ae5088522e528a98264 (diff)
device: rename SYS_DEFINE_DEVICE()
Rename it to DEVICE_DEFINE() so that it fits in the 'device' namespace. Change-Id: I3af3a39cf9154359b31d22729d0db9f710cd202b 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 ddbde1fbb..4d3382826 100644
--- a/samples/nanokernel/test/test_ipm/src/test_ipm.c
+++ b/samples/nanokernel/test/test_ipm/src/test_ipm.c
@@ -41,7 +41,7 @@
/* Set up the dummy IPM driver */
struct ipm_dummy_driver_data ipm_dummy0_driver_data;
DEVICE_INIT_CONFIG_DEFINE(ipm_dummy0, "ipm_dummy0", ipm_dummy_init, NULL);
-SYS_DEFINE_DEVICE(ipm_dummy0, &ipm_dummy0_driver_data, SECONDARY,
+DEVICE_DEFINE(ipm_dummy0, &ipm_dummy0_driver_data, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
/* Sending side of the console IPM driver, will forward anything sent
@@ -53,7 +53,7 @@ struct ipm_console_sender_config_info sender_config = {
};
DEVICE_INIT_CONFIG_DEFINE(ipm_console_send0, "ipm_send0",
ipm_console_sender_init, &sender_config);
-SYS_DEFINE_DEVICE(ipm_console_send0, NULL, NANOKERNEL,
+DEVICE_DEFINE(ipm_console_send0, NULL, NANOKERNEL,
INIT_PRIO_IPM_SEND);
/* Receiving side of the console IPM driver. These numbers are
@@ -80,7 +80,7 @@ struct ipm_console_receiver_config_info receiver_config = {
struct ipm_console_receiver_runtime_data receiver_data;
DEVICE_INIT_CONFIG_DEFINE(ipm_console_recv0, "ipm_recv0",
ipm_console_receiver_init, &receiver_config);
-SYS_DEFINE_DEVICE(ipm_console_recv0, &receiver_data, NANOKERNEL,
+DEVICE_DEFINE(ipm_console_recv0, &receiver_data, NANOKERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
static const char thestr[] = "everything is awesome\n";