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>
This commit is contained in:
parent
c7b6706b42
commit
cc230815cb
2 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,7 @@ LOG_MODULE_REGISTER(modem_gsm, CONFIG_MODEM_LOG_LEVEL);
|
||||||
#include <sys/ring_buffer.h>
|
#include <sys/ring_buffer.h>
|
||||||
#include <sys/util.h>
|
#include <sys/util.h>
|
||||||
#include <net/ppp.h>
|
#include <net/ppp.h>
|
||||||
|
#include <drivers/gsm_ppp.h>
|
||||||
#include <drivers/uart.h>
|
#include <drivers/uart.h>
|
||||||
#include <drivers/console/uart_mux.h>
|
#include <drivers/console/uart_mux.h>
|
||||||
|
|
||||||
|
@ -785,5 +786,5 @@ static int gsm_init(const struct device *device)
|
||||||
return 0;
|
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);
|
CONFIG_MODEM_GSM_INIT_PRIORITY);
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#ifndef GSM_PPP_H_
|
#ifndef GSM_PPP_H_
|
||||||
#define GSM_PPP_H_
|
#define GSM_PPP_H_
|
||||||
|
|
||||||
|
#define GSM_MODEM_DEVICE_NAME "modem_gsm"
|
||||||
|
|
||||||
/** @cond INTERNAL_HIDDEN */
|
/** @cond INTERNAL_HIDDEN */
|
||||||
struct device;
|
struct device;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue