Less long lines that way.

Signed-off-by: Kalle Valo <kv...@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath10k/wmi.c |   84 ++++++++++++++++++++-------------
 1 file changed, 52 insertions(+), 32 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/wmi.c 
b/drivers/net/wireless/ath/ath10k/wmi.c
index 5e235d4..441fbcd 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -1256,38 +1256,58 @@ int ath10k_wmi_cmd_init(struct ath10k *ar)
 {
        struct wmi_init_cmd *cmd;
        struct sk_buff *buf;
-       struct wmi_resource_config config = {
-               .num_vdevs = __cpu_to_le32(TARGET_NUM_VDEVS),
-               .num_peers = __cpu_to_le32(TARGET_NUM_PEERS + TARGET_NUM_VDEVS),
-               .num_offload_peers = __cpu_to_le32(TARGET_NUM_OFFLOAD_PEERS),
-               .num_offload_reorder_bufs = 
__cpu_to_le32(TARGET_NUM_OFFLOAD_REORDER_BUFS),
-               .num_peer_keys = __cpu_to_le32(TARGET_NUM_PEER_KEYS),
-               .num_tids = __cpu_to_le32(TARGET_NUM_TIDS),
-               .ast_skid_limit = __cpu_to_le32(TARGET_AST_SKID_LIMIT),
-               .tx_chain_mask = __cpu_to_le32(TARGET_TX_CHAIN_MASK),
-               .rx_chain_mask = __cpu_to_le32(TARGET_RX_CHAIN_MASK),
-               .rx_timeout_pri_vo = __cpu_to_le32(TARGET_RX_TIMEOUT_LO_PRI),
-               .rx_timeout_pri_vi = __cpu_to_le32(TARGET_RX_TIMEOUT_LO_PRI),
-               .rx_timeout_pri_be = __cpu_to_le32(TARGET_RX_TIMEOUT_LO_PRI),
-               .rx_timeout_pri_bk = __cpu_to_le32(TARGET_RX_TIMEOUT_HI_PRI),
-               .rx_decap_mode = __cpu_to_le32(TARGET_RX_DECAP_MODE),
-               .scan_max_pending_reqs = 
__cpu_to_le32(TARGET_SCAN_MAX_PENDING_REQS),
-               .bmiss_offload_max_vdev = 
__cpu_to_le32(TARGET_BMISS_OFFLOAD_MAX_VDEV),
-               .roam_offload_max_vdev = 
__cpu_to_le32(TARGET_ROAM_OFFLOAD_MAX_VDEV),
-               .roam_offload_max_ap_profiles = 
__cpu_to_le32(TARGET_ROAM_OFFLOAD_MAX_AP_PROFILES),
-               .num_mcast_groups = __cpu_to_le32(TARGET_NUM_MCAST_GROUPS),
-               .num_mcast_table_elems = 
__cpu_to_le32(TARGET_NUM_MCAST_TABLE_ELEMS),
-               .mcast2ucast_mode = __cpu_to_le32(TARGET_MCAST2UCAST_MODE),
-               .tx_dbg_log_size = __cpu_to_le32(TARGET_TX_DBG_LOG_SIZE),
-               .num_wds_entries = __cpu_to_le32(TARGET_NUM_WDS_ENTRIES),
-               .dma_burst_size = __cpu_to_le32(TARGET_DMA_BURST_SIZE),
-               .mac_aggr_delim = __cpu_to_le32(TARGET_MAC_AGGR_DELIM),
-               .rx_skip_defrag_timeout_dup_detection_check = 
__cpu_to_le32(TARGET_RX_SKIP_DEFRAG_TIMEOUT_DUP_DETECTION_CHECK),
-               .vow_config = __cpu_to_le32(TARGET_VOW_CONFIG),
-               .gtk_offload_max_vdev = 
__cpu_to_le32(TARGET_GTK_OFFLOAD_MAX_VDEV),
-               .num_msdu_desc = __cpu_to_le32(TARGET_NUM_MSDU_DESC),
-               .max_frag_entries = __cpu_to_le32(TARGET_MAX_FRAG_ENTRIES),
-       };
+       struct wmi_resource_config config = {};
+
+       config.num_vdevs = __cpu_to_le32(TARGET_NUM_VDEVS);
+       config.num_peers = __cpu_to_le32(TARGET_NUM_PEERS + TARGET_NUM_VDEVS);
+       config.num_offload_peers = __cpu_to_le32(TARGET_NUM_OFFLOAD_PEERS);
+
+       config.num_offload_reorder_bufs =
+               __cpu_to_le32(TARGET_NUM_OFFLOAD_REORDER_BUFS);
+
+       config.num_peer_keys = __cpu_to_le32(TARGET_NUM_PEER_KEYS);
+       config.num_tids = __cpu_to_le32(TARGET_NUM_TIDS);
+       config.ast_skid_limit = __cpu_to_le32(TARGET_AST_SKID_LIMIT);
+       config.tx_chain_mask = __cpu_to_le32(TARGET_TX_CHAIN_MASK);
+       config.rx_chain_mask = __cpu_to_le32(TARGET_RX_CHAIN_MASK);
+       config.rx_timeout_pri_vo = __cpu_to_le32(TARGET_RX_TIMEOUT_LO_PRI);
+       config.rx_timeout_pri_vi = __cpu_to_le32(TARGET_RX_TIMEOUT_LO_PRI);
+       config.rx_timeout_pri_be = __cpu_to_le32(TARGET_RX_TIMEOUT_LO_PRI);
+       config.rx_timeout_pri_bk = __cpu_to_le32(TARGET_RX_TIMEOUT_HI_PRI);
+       config.rx_decap_mode = __cpu_to_le32(TARGET_RX_DECAP_MODE);
+
+       config.scan_max_pending_reqs =
+               __cpu_to_le32(TARGET_SCAN_MAX_PENDING_REQS);
+
+       config.bmiss_offload_max_vdev =
+               __cpu_to_le32(TARGET_BMISS_OFFLOAD_MAX_VDEV);
+
+       config.roam_offload_max_vdev =
+               __cpu_to_le32(TARGET_ROAM_OFFLOAD_MAX_VDEV);
+
+       config.roam_offload_max_ap_profiles =
+               __cpu_to_le32(TARGET_ROAM_OFFLOAD_MAX_AP_PROFILES);
+
+       config.num_mcast_groups = __cpu_to_le32(TARGET_NUM_MCAST_GROUPS);
+       config.num_mcast_table_elems =
+               __cpu_to_le32(TARGET_NUM_MCAST_TABLE_ELEMS);
+
+       config.mcast2ucast_mode = __cpu_to_le32(TARGET_MCAST2UCAST_MODE);
+       config.tx_dbg_log_size = __cpu_to_le32(TARGET_TX_DBG_LOG_SIZE);
+       config.num_wds_entries = __cpu_to_le32(TARGET_NUM_WDS_ENTRIES);
+       config.dma_burst_size = __cpu_to_le32(TARGET_DMA_BURST_SIZE);
+       config.mac_aggr_delim = __cpu_to_le32(TARGET_MAC_AGGR_DELIM);
+
+       config.rx_skip_defrag_timeout_dup_detection_check =
+               
__cpu_to_le32(TARGET_RX_SKIP_DEFRAG_TIMEOUT_DUP_DETECTION_CHECK);
+
+       config.vow_config = __cpu_to_le32(TARGET_VOW_CONFIG);
+
+       config.gtk_offload_max_vdev =
+               __cpu_to_le32(TARGET_GTK_OFFLOAD_MAX_VDEV);
+
+       config.num_msdu_desc = __cpu_to_le32(TARGET_NUM_MSDU_DESC);
+       config.max_frag_entries = __cpu_to_le32(TARGET_MAX_FRAG_ENTRIES);
 
        buf = ath10k_wmi_alloc_skb(sizeof(*cmd));
        if (!buf)

_______________________________________________
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to