From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Date: Wed, 24 Apr 2013 09:36:49 +0300 Subject: [ath9k-devel] [PATCH 2/5] ath10k: make host_ce_config_wlan static variable const In-Reply-To: <20130424063524.20002.20647.stgit@localhost6.localdomain6> References: <20130424063524.20002.20647.stgit@localhost6.localdomain6> Message-ID: <20130424063649.20002.56413.stgit@localhost6.localdomain6> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Nothing modifies it. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/ce.c | 8 ++++---- drivers/net/wireless/ath/ath10k/ce.h | 2 +- drivers/net/wireless/ath/ath10k/pci.c | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.c index d5351a3..d3aa515 100644 --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -703,7 +703,7 @@ void ath10k_ce_recv_cb_register(struct ce_state *ce_state, static int ath10k_ce_init_src_ring(struct ath10k *ar, unsigned int ce_id, struct ce_state *ce_state, - struct ce_attr *attr) + const struct ce_attr *attr) { struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ce_ring_state *src_ring; @@ -795,7 +795,7 @@ static int ath10k_ce_init_src_ring(struct ath10k *ar, static int ath10k_ce_init_dest_ring(struct ath10k *ar, unsigned int ce_id, struct ce_state *ce_state, - struct ce_attr *attr) + const struct ce_attr *attr) { struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ce_ring_state *dest_ring; @@ -877,7 +877,7 @@ static int ath10k_ce_init_dest_ring(struct ath10k *ar, static struct ce_state *ath10k_ce_init_state(struct ath10k *ar, unsigned int ce_id, - struct ce_attr *attr) + const struct ce_attr *attr) { struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ce_state *ce_state = NULL; @@ -916,7 +916,7 @@ static struct ce_state *ath10k_ce_init_state(struct ath10k *ar, */ struct ce_state *ath10k_ce_init(struct ath10k *ar, unsigned int ce_id, - struct ce_attr *attr) + const struct ce_attr *attr) { struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ce_state *ce_state; diff --git a/drivers/net/wireless/ath/ath10k/ce.h b/drivers/net/wireless/ath/ath10k/ce.h index 084b997..01879eb 100644 --- a/drivers/net/wireless/ath/ath10k/ce.h +++ b/drivers/net/wireless/ath/ath10k/ce.h @@ -275,7 +275,7 @@ int ath10k_ce_completed_send_next(struct ce_state *ce_state, /* Initialize an instance of a CE */ struct ce_state *ath10k_ce_init(struct ath10k *ar, unsigned int ce_id, - struct ce_attr *attr); + const struct ce_attr *attr); /*==================CE Engine Shutdown=======================*/ /* diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 0d1523b..22a5451 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -52,7 +52,7 @@ static int ath10k_pci_post_recv_buffers(struct ath10k *ar); static int ath10k_pci_post_recv_buffers_pipe(struct hif_ce_pipe_info *pipe_info, int num); -static struct ce_attr host_ce_config_wlan[] = { +static const struct ce_attr host_ce_config_wlan[] = { /* host->target HTC control and raw streams */ { /* CE0 */ CE_ATTR_FLAGS, 0, 16, 256, 0, NULL,}, /* could be moved to share CE3 */ @@ -770,7 +770,7 @@ static void ath10k_pci_start_ce(struct ath10k *ar) { struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ce_state *ce_diag = ar_pci->ce_diag; - struct ce_attr *attr; + const struct ce_attr *attr; struct hif_ce_pipe_info *pipe_info; struct hif_ce_completion_state *compl; int i, pipe_num, completions; @@ -1075,7 +1075,7 @@ static int ath10k_pci_post_recv_buffers(struct ath10k *ar) { struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct hif_ce_pipe_info *pipe_info; - struct ce_attr *attr; + const struct ce_attr *attr; int pipe_num, ret = 0; for (pipe_num = 0; pipe_num < ar_pci->ce_count; pipe_num++) { @@ -1622,7 +1622,7 @@ static void ath10k_pci_ce_init(struct ath10k *ar) { struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct hif_ce_pipe_info *pipe_info; - struct ce_attr *attr; + const struct ce_attr *attr; int pipe_num; for (pipe_num = 0; pipe_num < ar_pci->ce_count; pipe_num++) {