drivers: modem: gsm_ppp: Use DTS

Convert the gsm_ppp driver to use DTS.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2021-04-25 01:09:30 +08:00 committed by Anas Nashif
commit 9d2f8a1124
19 changed files with 87 additions and 29 deletions

View file

@ -862,7 +862,7 @@ static int ppp_start(const struct device *dev)
dev_name = mux->name;
#elif IS_ENABLED(CONFIG_MODEM_GSM_PPP)
dev_name = CONFIG_MODEM_GSM_UART_NAME;
dev_name = DT_BUS_LABEL(DT_INST(0, zephyr_gsm_ppp));
#else
dev_name = CONFIG_NET_PPP_UART_NAME;
#endif