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:
Jukka Rissanen 2020-10-08 14:38:53 +03:00 committed by Carles Cufí
parent c7b6706b42
commit cc230815cb
2 changed files with 3 additions and 1 deletions

View file

@ -13,6 +13,7 @@ LOG_MODULE_REGISTER(modem_gsm, CONFIG_MODEM_LOG_LEVEL);
#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 @@ static int gsm_init(const struct device *device)
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);

View file

@ -7,6 +7,7 @@
#ifndef GSM_PPP_H_
#define GSM_PPP_H_
#define GSM_MODEM_DEVICE_NAME "modem_gsm"
/** @cond INTERNAL_HIDDEN */
struct device;