From: Fabian Wolff <fabian.wolff@fau.de>
To: linux-kernel@i4.cs.fau.de
Cc: gregkh@linuxfoundation.org, horvatmate@gmail.com,
fabian.wolff@fau.de, hdegoede@redhat.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH 3/7] staging: rtl8723bs: wifi_regd.c: fix comment formatting
Date: Mon, 12 Jun 2017 12:46:12 +0200 [thread overview]
Message-ID: <1497264376-18840-4-git-send-email-fabian.wolff@fau.de> (raw)
In-Reply-To: <1497264376-18840-1-git-send-email-fabian.wolff@fau.de>
This patch improves the formatting of block comments and removes one
commented-out line of code entirely (keeping it would be redundant
thanks to version control).
Signed-off-by: Fabian Wolff <fabian.wolff@fau.de>
Signed-off-by: Mate Horvath <horvatmate@gmail.com>
---
drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/wifi_regd.c b/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
index 00c7b0d..043b34e 100644
--- a/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
+++ b/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
@@ -14,8 +14,8 @@
*/
/*
- *Only these channels all allow active
- *scan on all world regulatory domains
+ * Only these channels all allow active
+ * scan on all world regulatory domains
*/
/* 2G chan 01 - chan 11 */
@@ -23,8 +23,8 @@
REG_RULE(2412 - 10, 2462 + 10, 40, 0, 20, 0)
/*
- *We enable active scan on these a case
- *by case basis by regulatory domain
+ * We enable active scan on these a case
+ * by case basis by regulatory domain
*/
/* 2G chan 12 - chan 13, PASSIV SCAN */
@@ -49,7 +49,8 @@ static const struct ieee80211_regdomain rtw_regdom_rd = {
static int rtw_ieee80211_channel_to_frequency(int chan, int band)
{
/* see 802.11 17.3.8.3.2 and Annex J
- * there are overlapping channel numbers in 5GHz and 2GHz bands */
+ * there are overlapping channel numbers in 5GHz and 2GHz bands
+ */
/* NL80211_BAND_2GHZ */
if (chan == 14)
@@ -73,7 +74,7 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy)
u16 channel;
u32 freq;
- /* all channels disable */
+ /* all channels disable */
for (i = 0; i < NUM_NL80211_BANDS; i++) {
sband = wiphy->bands[i];
@@ -87,7 +88,7 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy)
}
}
- /* channels apply by channel plans. */
+ /* channels apply by channel plans. */
for (i = 0; i < max_chan_nums; i++) {
channel = channel_set[i].ChannelNum;
freq =
@@ -147,7 +148,6 @@ int rtw_regd_init(struct adapter *padapter,
void (*reg_notifier) (struct wiphy * wiphy,
struct regulatory_request *request))
{
- /* struct registry_priv *registrypriv = &padapter->registrypriv; */
struct wiphy *wiphy = padapter->rtw_wdev->wiphy;
_rtw_regd_init_wiphy(NULL, wiphy, reg_notifier);
--
2.7.4
next prev parent reply other threads:[~2017-06-12 10:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-12 10:46 [PATCH 0/7] staging: rtl8723bs: wifi_regd.c: fix checkpatch errors and warnings Fabian Wolff
2017-06-12 10:46 ` [PATCH 1/7] staging: rtl8723bs: wifi_regd.c: put spaces around binary operators Fabian Wolff
2017-06-13 12:58 ` Greg KH
2017-06-13 13:11 ` Greg KH
2017-06-13 21:01 ` [PATCH v2 0/5] staging: rtl8723bs: wifi_regd.c: fix checkpatch errors and warnings Fabian Wolff
2017-06-13 21:01 ` [PATCH v2 1/5] staging: rtl8723bs: wifi_regd.c: put spaces around binary operators Fabian Wolff
2017-06-13 21:01 ` [PATCH v2 2/5] staging: rtl8723bs: wifi_regd.c: fix comment formatting Fabian Wolff
2017-06-13 21:01 ` [PATCH v2 3/5] staging: rtl8723bs: wifi_regd.c: remove superfluous spaces from pointer arguments Fabian Wolff
2017-06-13 21:01 ` [PATCH v2 4/5] staging: rtl8723bs: wifi_regd.c: adjust alignment to match open parenthesis Fabian Wolff
2017-06-13 21:01 ` [PATCH v2 5/5] staging: rtl8723bs: wifi_regd.c: insert blank line after declarations Fabian Wolff
2017-06-13 13:36 ` [PATCH 1/7] staging: rtl8723bs: wifi_regd.c: put spaces around binary operators Ian W MORRISON
2017-06-13 14:36 ` Dan Carpenter
2017-06-14 11:49 ` Ian W MORRISON
2017-06-14 12:19 ` Dan Carpenter
2017-06-14 13:25 ` Joe Perches
2017-06-12 10:46 ` [PATCH 2/7] staging: rtl8723bs: wifi_regd.c: fix checkpatch.pl warning 'Statements should start on a tabstop' Fabian Wolff
2017-06-12 10:46 ` Fabian Wolff [this message]
2017-06-12 10:46 ` [PATCH 4/7] staging: rtl8723bs: wifi_regd.c: remove superfluous braces Fabian Wolff
2017-06-12 10:46 ` [PATCH 5/7] staging: rtl8723bs: wifi_regd.c: remove superfluous spaces from pointer arguments Fabian Wolff
2017-06-12 10:46 ` [PATCH 6/7] staging: rtl8723bs: wifi_regd.c: adjust alignment to match open parenthesis Fabian Wolff
2017-06-12 10:46 ` [PATCH 7/7] staging: rtl8723bs: wifi_regd.c: insert blank line after declarations Fabian Wolff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1497264376-18840-4-git-send-email-fabian.wolff@fau.de \
--to=fabian.wolff@fau.de \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=horvatmate@gmail.com \
--cc=linux-kernel@i4.cs.fau.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®