aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc_drv_init.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-03 20:25:31 +0530
committerKalle Valo <kvalo@qca.qualcomm.com>2017-08-08 14:09:15 +0300
commit3588e1110e49fdad7fc8898420a9c71b34a3ca04 (patch)
tree532bac8c2605c480445b34f53bf157eb29dbc9c1 /drivers/net/wireless/ath/ath9k/htc_drv_init.c
parentwcn36xx: Introduce mutual exclusion of fw configuration (diff)
downloadlinux-dev-3588e1110e49fdad7fc8898420a9c71b34a3ca04.tar.xz
linux-dev-3588e1110e49fdad7fc8898420a9c71b34a3ca04.zip
ath9k: make ath_ps_ops structures as const
ath_ps_ops structures are only stored as a reference in the ps_ops field of a ath_common structure. This field is of type const, so make the structures as const. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
index defacc6c9c99..da2164b0cccc 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
@@ -71,7 +71,7 @@ static void ath9k_htc_op_ps_restore(struct ath_common *common)
ath9k_htc_ps_restore((struct ath9k_htc_priv *) common->priv);
}
-static struct ath_ps_ops ath9k_htc_ps_ops = {
+static const struct ath_ps_ops ath9k_htc_ps_ops = {
.wakeup = ath9k_htc_op_ps_wakeup,
.restore = ath9k_htc_op_ps_restore,
};