Skip to content

Commit 15ac840

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/i2c_ite_enhance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct i2c_cq_packet {
5353
uint8_t id;
5454
uint8_t cmd_l;
5555
uint8_t cmd_h;
56-
uint8_t wdata[0];
56+
FLEXIBLE_ARRAY_DECLARE(uint8_t, wdata);
5757
};
5858
#endif /* CONFIG_I2C_IT8XXX2_CQ_MODE */
5959

0 commit comments

Comments
 (0)