summaryrefslogtreecommitdiff
path: root/hif/src/usb
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/src/usb
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/src/usb')
-rw-r--r--hif/src/usb/regtable_usb.h4
1 files changed, 2 insertions, 2 deletions
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,