device: rename SYS_GET_DEVICE_NAME/SYS_GET_DEVICE

Rename them to DEVICE_NAME_GET and DEVICE_GET to fit in the 'device'
namespace.

Change-Id: I407a7f284ed4d1c071961b46615eea859c2e825f
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-01-26 16:42:29 -05:00 committed by Anas Nashif
commit 2c1a95aee6
15 changed files with 32 additions and 32 deletions

View file

@ -209,7 +209,7 @@ DEVICE_DEFINE(rtc, &rtc_runtime, SECONDARY,
int rtc_dw_init(struct device *dev)
{
irq_connect(CONFIG_RTC_IRQ, CONFIG_RTC_IRQ_PRI, rtc_dw_isr,
SYS_GET_DEVICE(rtc), 0);
DEVICE_GET(rtc), 0);
irq_enable(CONFIG_RTC_IRQ);
_rtc_dw_int_unmask();

View file

@ -98,4 +98,4 @@ DEVICE_INIT_CONFIG_DEFINE(rtc, CONFIG_RTC_DRV_NAME,
DEVICE_DEFINE(rtc, NULL, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
static struct device *rtc_qmsi_dev = SYS_GET_DEVICE(rtc);
static struct device *rtc_qmsi_dev = DEVICE_GET(rtc);