From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23776173 for ; Mon, 3 Jan 2022 19:03:55 +0000 (UTC) Received: by mail-ed1-f43.google.com with SMTP id w16so139464160edc.11 for ; Mon, 03 Jan 2022 11:03:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/2JEOCUCGzzKmkzKgD9tpqsM2aLNkAEcT88f23wY2bA=; b=JLeOr+J+M8DUT40vwroGazDnni2GSIRt+UK1Wan7DZyOexyDU/YQmk+dEpf1qCIKvB sdi3N1GEBVzmp4k1JV0PXO2EuYlQRgz71448OTfOqlCGXefWb6N9QIY9GWGjUSRNOFhP RH5vshF/o3KwBxgHdTu8YG8n6BKE93ODWFKIJIFCVDaRDgX+gFlSbUfHkg/NFwIEmboj 5Lw+0lJtvv+9POGBZs5AJIdyrwrfkdm6NRp6KJ6ZBdXZDkhWirn4l2M0fjbnI9tpY0xN 9JSfDSWLFcO45YJiIfRY9bAPmjLBHAL74PdQKv2aIKZnVy5A1SeMwR7kzfBJnPJ1bZIf 5riQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/2JEOCUCGzzKmkzKgD9tpqsM2aLNkAEcT88f23wY2bA=; b=XTjVYYFNsVoMjrGfriK/Pd3gQPGjN7mxdgZAgVV6yblhZJ45iYQMlUs4fZsj/jt5Z3 NC7gZ7O/rJhUIt6ocT86mAHBJBDzcmr76L+HYPexfdNkWLOSCwRQS07OZP1ssG9YbOF9 02qJFLhEofclK0olDQkjthuEASlE3BTjZ4xOTgRknmgBrKkCcrmgPQj5Wrfdw1C2XT9c iEqOlLo4dxjDJ+Yh1H94QhYyKD0yV592jSuIzNiZhiHoNbdL+CKhPoIYnIfpPL3LZzyS kOP+XXJzf7x3CKvqeY6hnf2B5foVcfcykpZWjFXQdfEtjOPxBJ8dnaHym1uA/ibIGgme lSHA== X-Gm-Message-State: AOAM530M+hblhjlTT1ZP2O+r2GkgGFIXHUz8kEdm6Fkt+m/ESgyfHwJM wT1r2psfDRUJlXRMERGoRRk= X-Google-Smtp-Source: ABdhPJxiUJjU/vUyAMmqdJdmitcqB1YdVBA/hEU4Fn+S8yy51xeZfvNormw4/e36RadlSSTBpBFhow== X-Received: by 2002:a05:6402:34c6:: with SMTP id w6mr46365324edc.284.1641236633574; Mon, 03 Jan 2022 11:03:53 -0800 (PST) Received: from t470p.fritz.box (host-87-18-201-21.retail.telecomitalia.it. [87.18.201.21]) by smtp.gmail.com with ESMTPSA id gt20sm7009614ejc.11.2022.01.03.11.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 11:03:53 -0800 (PST) From: Alberto Merciai To: Cc: alb3rt0.m3rciai@gmail.com, linuxfancy@googlegroups.com, Larry Finger , Phillip Potter , Greg Kroah-Hartman , Michael Straube , Martin Kaiser , "Fabio M. De Francesco" , Nathan Chancellor , Dan Carpenter , Saurav Girepunje , Ivan Safonov , Christophe JAILLET , Yang Li , Zameer Manji , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 00/56] staging: r8188eu: wifi.h macros refactoring Date: Mon, 3 Jan 2022 20:01:35 +0100 Message-Id: <20220103190326.363960-1-alb3rt0.m3rciai@gmail.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series refactors most of the macros inside include/wifi.h making them compliant with linux coding style. Main changes are related to the following issues: - Avoid CamelCase - Remove dead code - Macros with complex values should be enclosed in parentheses Alberto Merciai (56): staging: r8188eu: add parenthesis to macro SetToDs staging: r8188eu: rename camelcase SetToDs to set_to_ds staging: r8188eu: remove dead macro ClearToDs staging: r8188eu: add parenthesis to macro SetFrDs staging: r8188eu: rename camelcase SetFrDs to set_fr_ds staging: r8188eu: remove dead macro ClearFrDs staging: r8188eu: add parenthesis to macro SetMFrag staging: r8188eu: rename camelcase SetMFrag to set_m_frag staging: r8188eu: rename camelcase GetToDs to get_to_ds staging: r8188eu: rename camelcase GetFrDs to get_fr_ds staging: r8188eu: rename camelcase GetMFrag to get_m_frag staging: r8188eu: rename camelcase ClearMFrag to clear_m_frag staging: r8188eu: add parenthesis to macro clear_m_frag staging: r8188eu: remove dead macro SetRetry staging: r8188eu: rename camelcase GetRetry to get_retry staging: r8188eu: remove dead macro ClearRetry staging: r8188eu: rename camelcase SetPwrMgt to set_pwr_mgt staging: r8188eu: add parenthesis to macro set_pwr_mgt staging: r8188eu: rename camelcase GetPwrMgt to get_pwr_mgt staging: r8188eu: remove dead macro ClearPwrMgt staging: r8188eu: rename camelcase SetMData to set_m_data staging: r8188eu: add parenthesis to macro set_m_data staging: r8188eu: rename camelcase GetMData to get_m_data staging: r8188eu: remove dead macro ClearMData staging: r8188eu: rename camelcase SetPrivacy to set_privacy staging: r8188eu: add parenthesis to macro set_privacy staging: r8188eu: rename camelcase GetPrivacy to get_privacy staging: r8188eu: remove dead macro ClearPrivacy staging: r8188eu: rename camelcase GetOrder to get_order staging: r8188eu: rename camelcase GetFrameType to get_frame_type staging: r8188eu: remove dead macro SetFrameType staging: r8188eu: rename camelcase GetFrameSubType to get_frame_subtype staging: r8188eu: rename camelcase SetFrameSubType to set_frame_subtype staging: r8188eu: rename camelcase GetSequence to get_sequence staging: r8188eu: rename camelcase GetFragNum to get_frag_num staging: r8188eu: remove dead macro GetTupleCache staging: r8188eu: remove dead macro SetFragNum staging: r8188eu: rename camelcase SetSeqNum to set_seq_num staging: r8188eu: rename camelcase SetDuration to set_duration staging: r8188eu: rename camelcase SetPriority to set_priority staging: r8188eu: add parenthesis to macro set_duration staging: r8188eu: add parenthesis to macro set_priority staging: r8188eu: rename camelcase GetPriority to get_priority staging: r8188eu: rename camelcase SetEOSP to set_eosp staging: r8188eu: add parenthesis to macro set_eosp staging: r8188eu: remove dead macro GetTid staging: r8188eu: rename camelcase SetAckpolicy to set_ack_policy staging: r8188eu: add parenthesis to macro set_ack_policy staging: r8188eu: rename camelcase GetAckpolicy into get_ack_policy staging: r8188eu: rename camelcase GetAMsdu to get_a_msdu staging: r8188eu: remove dead macro SetAMsdu staging: r8188eu: rename camelcase GetAid to get_aid staging: r8188eu: rename camelcase GetAddr1Ptr to get_addr_1_ptr staging: r8188eu: rename camelcase GetAddr2Ptr to get_addr_2_ptr staging: r8188eu: rename camelcase GetAddr3Ptr to get_addr_3_ptr staging: r8188eu: rename camelcase GetAddr4Ptr to get_addr_4_ptr drivers/staging/r8188eu/core/rtw_mlme_ext.c | 190 +++++++++--------- drivers/staging/r8188eu/core/rtw_p2p.c | 24 +-- drivers/staging/r8188eu/core/rtw_recv.c | 78 +++---- drivers/staging/r8188eu/core/rtw_security.c | 8 +- drivers/staging/r8188eu/core/rtw_wlan_util.c | 4 +- drivers/staging/r8188eu/core/rtw_xmit.c | 22 +- drivers/staging/r8188eu/hal/rtl8188e_cmd.c | 30 +-- drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c | 2 +- drivers/staging/r8188eu/include/wifi.h | 167 ++++++--------- 9 files changed, 240 insertions(+), 285 deletions(-) -- 2.25.1