drivers: modem: Fix gpio compile errors with modem shell

Compile errors because of missing include file and typos
when accessing variables in the modem_pin struct.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2020-02-06 10:43:37 +02:00
commit 6009045902
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,7 @@
#include <net/buf.h>
#include <net/net_ip.h>
#include <sys/ring_buffer.h>
#include <drivers/gpio.h>
#ifdef __cplusplus
extern "C" {

View file

@ -44,7 +44,8 @@ int modem_pin_config(struct modem_context *ctx, u32_t pin, bool enable)
return gpio_pin_configure(ctx->pins[pin].gpio_port_dev,
ctx->pins[pin].pin,
enable ? cts->pins[pin].flags : GPIO_INPUT);
enable ? ctx->pins[pin].init_flags :
GPIO_INPUT);
}
int modem_pin_init(struct modem_context *ctx)