zephyr: Fix serial recovery compilation warnings
Missing const on pointers to device structures caused compilation warnings when compiling bootloader with serial recovery enabled. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
parent
c1cdcae197
commit
1422b4b8c8
|
@ -324,7 +324,7 @@ void main(void)
|
||||||
|
|
||||||
#ifdef CONFIG_MCUBOOT_SERIAL
|
#ifdef CONFIG_MCUBOOT_SERIAL
|
||||||
|
|
||||||
struct device *detect_port;
|
struct device const *detect_port;
|
||||||
uint32_t detect_value = !CONFIG_BOOT_SERIAL_DETECT_PIN_VAL;
|
uint32_t detect_value = !CONFIG_BOOT_SERIAL_DETECT_PIN_VAL;
|
||||||
|
|
||||||
detect_port = device_get_binding(CONFIG_BOOT_SERIAL_DETECT_PORT);
|
detect_port = device_get_binding(CONFIG_BOOT_SERIAL_DETECT_PORT);
|
||||||
|
|
|
@ -41,7 +41,7 @@ struct line_input {
|
||||||
char line[CONFIG_BOOT_MAX_LINE_INPUT_LEN];
|
char line[CONFIG_BOOT_MAX_LINE_INPUT_LEN];
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct device *uart_dev;
|
static struct device const *uart_dev;
|
||||||
static struct line_input line_bufs[2];
|
static struct line_input line_bufs[2];
|
||||||
|
|
||||||
static sys_slist_t avail_queue;
|
static sys_slist_t avail_queue;
|
||||||
|
@ -115,7 +115,7 @@ boot_console_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
boot_uart_fifo_callback(struct device *dev, void *user_data)
|
boot_uart_fifo_callback(const struct device *dev, void *user_data)
|
||||||
{
|
{
|
||||||
static struct line_input *cmd;
|
static struct line_input *cmd;
|
||||||
uint8_t byte;
|
uint8_t byte;
|
||||||
|
|
Loading…
Reference in New Issue