carl9170: Replace zero-length array of trailing structs with flex-array
[carl9170fw.git] / include / shared / fwcmd.h
index 2a58dd88b21ef39dae5d095ae21dc1211884ca29..ff4b3b50250c673425ea61e0d00708c629972e02 100644 (file)
@@ -118,16 +118,16 @@ struct carl9170_reg_list {
 } __packed;
 
 struct carl9170_write_reg {
-       struct {
+       DECLARE_FLEX_ARRAY(struct {
                __le32          addr;
                __le32          val;
-       } regs[0] __packed;
+       } __packed, regs);
 } __packed;
 
 struct carl9170_write_reg_byte {
        __le32  addr;
        __le32  count;
-       u8      val[0];
+       u8      val[];
 } __packed;
 
 #define        CARL9170FW_PHY_HT_ENABLE                0x4