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:
Marcin Niestroj 2021-06-29 15:11:22 +02:00 committed by Christopher Friedt
commit 26bd4fb45e
11 changed files with 27 additions and 27 deletions

View file

@ -80,14 +80,14 @@ int mdm_receiver_send(struct mdm_receiver_context *ctx,
* @note Acquires receivers device, and prepares the context to be used.
*
* @param *ctx: receiver context to register.
* @param *uart_dev_name: communication device for the receiver context.
* @param *uart_dev: communication device for the receiver context.
* @param *buf: rx buffer to use for received data.
* @param size: rx buffer size.
*
* @retval 0 if ok, < 0 if error.
*/
int mdm_receiver_register(struct mdm_receiver_context *ctx,
const char *uart_dev_name,
const struct device *uart_dev,
uint8_t *buf, size_t size);
int mdm_receiver_sleep(struct mdm_receiver_context *ctx);