drivers: gsm: Add GSM modem device name
Application might need to know the GSM modem device name so
provide it in the header file.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
diff --git a/drivers/modem/gsm_ppp.c b/drivers/modem/gsm_ppp.c
index 9598536..f87c9e4 100644
--- a/drivers/modem/gsm_ppp.c
+++ b/drivers/modem/gsm_ppp.c
@@ -13,6 +13,7 @@
#include <sys/ring_buffer.h>
#include <sys/util.h>
#include <net/ppp.h>
+#include <drivers/gsm_ppp.h>
#include <drivers/uart.h>
#include <drivers/console/uart_mux.h>
@@ -785,5 +786,5 @@
return 0;
}
-DEVICE_INIT(gsm_ppp, "modem_gsm", gsm_init, &gsm, NULL, POST_KERNEL,
+DEVICE_INIT(gsm_ppp, GSM_MODEM_DEVICE_NAME, gsm_init, &gsm, NULL, POST_KERNEL,
CONFIG_MODEM_GSM_INIT_PRIORITY);
diff --git a/include/drivers/gsm_ppp.h b/include/drivers/gsm_ppp.h
index 5d31cdc..1f1a822 100644
--- a/include/drivers/gsm_ppp.h
+++ b/include/drivers/gsm_ppp.h
@@ -7,6 +7,7 @@
#ifndef GSM_PPP_H_
#define GSM_PPP_H_
+#define GSM_MODEM_DEVICE_NAME "modem_gsm"
/** @cond INTERNAL_HIDDEN */
struct device;