mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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
This commit is contained in:
parent
cb5d59b696
commit
9d9fa19d83
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue