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>
This commit is contained in:
committed by
Kalle Valo
parent
39efc7cc7c
commit
3588e1110e
@@ -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);
|
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,
|
.wakeup = ath9k_htc_op_ps_wakeup,
|
||||||
.restore = ath9k_htc_op_ps_restore,
|
.restore = ath9k_htc_op_ps_restore,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ static void ath9k_op_ps_restore(struct ath_common *common)
|
|||||||
ath9k_ps_restore((struct ath_softc *) common->priv);
|
ath9k_ps_restore((struct ath_softc *) common->priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ath_ps_ops ath9k_ps_ops = {
|
static const struct ath_ps_ops ath9k_ps_ops = {
|
||||||
.wakeup = ath9k_op_ps_wakeup,
|
.wakeup = ath9k_op_ps_wakeup,
|
||||||
.restore = ath9k_op_ps_restore,
|
.restore = ath9k_op_ps_restore,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user