From: Kalle Valo Date: Tue, 30 Apr 2013 17:29:34 +0300 Subject: [ath9k-devel] [PATCH 12/27] ath10k: rename struct wmi_p2p_noa_info::noa_descriptors In-Reply-To: <20130430142240.24217.41973.stgit@localhost6.localdomain6> References: <20130430142240.24217.41973.stgit@localhost6.localdomain6> Message-ID: <20130430142934.24217.70581.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 The word noa is useless as a field name. This makes few lines shorter. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/wmi.c | 9 ++++----- drivers/net/wireless/ath/ath10k/wmi.h | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index a1cf450..9d72f29 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -575,11 +575,10 @@ static void ath10k_p2p_fill_noa_ie(u8 *data, u32 len, for (i = 0; i < noa_descriptors; i++) { noa_attr->desc[i].count = - __le32_to_cpu(noa->noa_descriptors[i].type_count); - noa_attr->desc[i].duration = noa->noa_descriptors[i].duration; - noa_attr->desc[i].interval = noa->noa_descriptors[i].interval; - noa_attr->desc[i].start_time = - noa->noa_descriptors[i].start_time; + __le32_to_cpu(noa->descriptors[i].type_count); + noa_attr->desc[i].duration = noa->descriptors[i].duration; + noa_attr->desc[i].interval = noa->descriptors[i].interval; + noa_attr->desc[i].start_time = noa->descriptors[i].start_time; } attr_len = 2; /* index + oppps_ctwindow */ diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index 053d294..231f7b6 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h @@ -2490,7 +2490,7 @@ struct wmi_p2p_noa_info { /* Number of NOA descriptors */ u8 num_descriptors; - struct wmi_p2p_noa_descriptor noa_descriptors[WMI_P2P_MAX_NOA_DESCRIPTORS]; + struct wmi_p2p_noa_descriptor descriptors[WMI_P2P_MAX_NOA_DESCRIPTORS]; } __packed; struct wmi_bcn_info {