Skip to content

Commit 1fe9840

Browse files
Flavio Ceolinnashif
authored andcommitted
espi: ite: Use proper flexible array
Use proper flexible array instead of a GNU extension. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 15ac840 commit 1fe9840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/espi/espi_it8xxx2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <zephyr/drivers/gpio.h>
1212
#include <zephyr/drivers/interrupt_controller/wuc_ite_it8xxx2.h>
1313
#include <zephyr/kernel.h>
14+
#include <zephyr/sys/util.h>
1415
#include <soc.h>
1516
#include <soc_dt.h>
1617
#include "soc_espi.h"
@@ -945,7 +946,7 @@ static int espi_it8xxx2_write_lpc_request(const struct device *dev,
945946
((((tag) & 0xF) << 4) | (((len) >> 8) & 0xF))
946947

947948
struct espi_oob_msg_packet {
948-
uint8_t data_byte[0];
949+
FLEXIBLE_ARRAY_DECLARE(uint8_t, data_byte);
949950
};
950951

951952
static int espi_it8xxx2_send_oob(const struct device *dev,

0 commit comments

Comments
 (0)