1
0

qcacmn: add 'const' for 'section' in struct TGT_REG_TABLE

To fix the following compilation error:
warning: assignment discards ‘const’
qualifier from pointer target type, at:
reg_table->section = ar6320v2_reg_table
in ol_fw.c.

It's because the register table is a
const array, while reg_table->section does
not point to a const.
So add 'const' for 'section'.

Change-Id: Idfef358817241e73d660d2730b74c2ca88e23af1
CRs-Fixed: 2017786
Este cometimento está contido em:
Yu Wang
2017-03-10 15:19:02 +08:00
cometido por Gerrit - the friendly Code Review server
ascendente cb5d59b696
cometimento 9d9fa19d83
3 ficheiros modificados com 3 adições e 3 eliminações

Ver ficheiro

@@ -740,7 +740,7 @@ struct tgt_reg_section {
};
struct tgt_reg_table {
struct tgt_reg_section *section;
const struct tgt_reg_section *section;
uint32_t section_size;
};

Ver ficheiro

@@ -879,7 +879,7 @@ struct tgt_reg_section {
struct tgt_reg_table {
struct tgt_reg_section *section;
const struct tgt_reg_section *section;
uint32_t section_size;
};
#endif /* _REGTABLE_SDIO_H_ */

Ver ficheiro

@@ -1285,7 +1285,7 @@ struct tgt_reg_section {
};
struct tgt_reg_table {
struct tgt_reg_section *section;
const struct tgt_reg_section *section;
u_int32_t section_size;
};