drivers: modem: operate on device pointers instead of names
So far modem API used UART device names / labels. Change API to operate on device pointers instead, so that we stop using device_get_binding() in modem core and in some DT compatible modem drivers. Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
This commit is contained in:
parent
9e58a1e475
commit
26bd4fb45e
11 changed files with 27 additions and 27 deletions
|
@ -45,7 +45,7 @@ struct modem_iface_uart_data {
|
|||
* @retval 0 if ok, < 0 if error.
|
||||
*/
|
||||
int modem_iface_uart_init_dev(struct modem_iface *iface,
|
||||
const char *dev_name);
|
||||
const struct device *dev);
|
||||
|
||||
/**
|
||||
* @brief Init modem interface for UART
|
||||
|
@ -58,7 +58,7 @@ int modem_iface_uart_init_dev(struct modem_iface *iface,
|
|||
*/
|
||||
int modem_iface_uart_init(struct modem_iface *iface,
|
||||
struct modem_iface_uart_data *data,
|
||||
const char *dev_name);
|
||||
const struct device *dev);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue