summaryrefslogtreecommitdiff
path: root/hif
diff options
context:
space:
mode:
authorYu Wang <yyuwang@codeaurora.org>2017-03-10 15:19:02 +0800
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-24 23:19:06 -0700
commit173abd31491c685e6bcad659d05f2d422250c101 (patch)
tree9a6d77bb4e81129a38a1013cb594d9641815edfb /hif
parent038148326ba1287bb39254eaa2d41eb01ea71b89 (diff)
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
Diffstat (limited to 'hif')
-rw-r--r--hif/inc/regtable_pcie.h4
-rw-r--r--hif/src/sdio/regtable_sdio.h4
-rw-r--r--hif/src/usb/regtable_usb.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/hif/inc/regtable_pcie.h b/hif/inc/regtable_pcie.h
index 25df023c2033..db4f580fd11e 100644
--- a/hif/inc/regtable_pcie.h
+++ b/hif/inc/regtable_pcie.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -732,7 +732,7 @@ typedef struct TGT_REG_SECTION {
} tgt_reg_section;
typedef struct TGT_REG_TABLE {
- tgt_reg_section *section;
+ const tgt_reg_section *section;
uint32_t section_size;
} tgt_reg_table;
diff --git a/hif/src/sdio/regtable_sdio.h b/hif/src/sdio/regtable_sdio.h
index 9006f9df06e5..1f282c7a7fa7 100644
--- a/hif/src/sdio/regtable_sdio.h
+++ b/hif/src/sdio/regtable_sdio.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -879,7 +879,7 @@ typedef struct TGT_REG_SECTION {
typedef struct TGT_REG_TABLE {
- tgt_reg_section *section;
+ const tgt_reg_section *section;
uint32_t section_size;
} tgt_reg_table;
#endif /* _REGTABLE_SDIO_H_ */
diff --git a/hif/src/usb/regtable_usb.h b/hif/src/usb/regtable_usb.h
index 7d489892ea63..d53369880946 100644
--- a/hif/src/usb/regtable_usb.h
+++ b/hif/src/usb/regtable_usb.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -1285,7 +1285,7 @@ typedef struct TGT_REG_SECTION {
} tgt_reg_section;
typedef struct TGT_REG_TABLE {
- tgt_reg_section *section;
+ const tgt_reg_section *section;
u_int32_t section_size;
} tgt_reg_table;
void target_register_tbl_attach(struct hif_softc *scn,