outreachy.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: "Felix N. Kimbu" <felixkimbu1@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: outreachy@lists.linux.dev
Subject: [PATCH] staging: wlan-ng: Rename 'wlan_unsetup' to 'wlan_teardown'
Date: Wed, 13 Mar 2024 11:58:27 +0100	[thread overview]
Message-ID: <ZfGG093fyjI4G/ci@MOLeToid> (raw)

Rename function identifier 'wlan_unsetup' to 'wlan_teardown' in files
p80211netdev.c, p80211netdev.h and prism2usb.c, a pairing function for
'wlan_setup' to match common kernel coding style.

Signed-off-by: Felix N. Kimbu <felixkimbu1@gmail.com>
---
 drivers/staging/wlan-ng/p80211netdev.c | 4 ++--
 drivers/staging/wlan-ng/p80211netdev.h | 2 +-
 drivers/staging/wlan-ng/prism2usb.c    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 8634fc89a6c2..284c1c12e1d1 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -689,7 +689,7 @@ int wlan_setup(struct wlandevice *wlandev, struct device *physdev)
 }
 
 /*----------------------------------------------------------------
- * wlan_unsetup
+ * wlan_teardown
  *
  * This function is paired with the wlan_setup routine.  It should
  * be called after unregister_wlandev.  Basically, all it does is
@@ -708,7 +708,7 @@ int wlan_setup(struct wlandevice *wlandev, struct device *physdev)
  *	context of the kernel startup code.
  *----------------------------------------------------------------
  */
-void wlan_unsetup(struct wlandevice *wlandev)
+void wlan_teardown(struct wlandevice *wlandev)
 {
 	struct wireless_dev *wdev;
 
diff --git a/drivers/staging/wlan-ng/p80211netdev.h b/drivers/staging/wlan-ng/p80211netdev.h
index 485f2c697f5f..e3eefb67aae1 100644
--- a/drivers/staging/wlan-ng/p80211netdev.h
+++ b/drivers/staging/wlan-ng/p80211netdev.h
@@ -204,7 +204,7 @@ int wep_encrypt(struct wlandevice *wlandev, u8 *buf, u8 *dst, u32 len,
 		int keynum, u8 *iv, u8 *icv);
 
 int wlan_setup(struct wlandevice *wlandev, struct device *physdev);
-void wlan_unsetup(struct wlandevice *wlandev);
+void wlan_teardown(struct wlandevice *wlandev);
 int register_wlandev(struct wlandevice *wlandev);
 int unregister_wlandev(struct wlandevice *wlandev);
 void p80211netdev_rx(struct wlandevice *wlandev, struct sk_buff *skb);
diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c
index 0e0ccef4871e..416127e5d713 100644
--- a/drivers/staging/wlan-ng/prism2usb.c
+++ b/drivers/staging/wlan-ng/prism2usb.c
@@ -128,7 +128,7 @@ static int prism2sta_probe_usb(struct usb_interface *interface,
 failed_register:
 	usb_put_dev(dev);
 failed_reset:
-	wlan_unsetup(wlandev);
+	wlan_teardown(wlandev);
 failed:
 	kfree(wlandev);
 	kfree(hw);
@@ -208,7 +208,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)
 
 		/* Unhook the wlandev */
 		unregister_wlandev(wlandev);
-		wlan_unsetup(wlandev);
+		wlan_teardown(wlandev);
 
 		usb_put_dev(hw->usb);
 
-- 
2.34.1


             reply	other threads:[~2024-03-13 10:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-13 10:58 Felix N. Kimbu [this message]
2024-03-13 14:36 ` [PATCH] staging: wlan-ng: Rename 'wlan_unsetup' to 'wlan_teardown' Dan Carpenter

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=ZfGG093fyjI4G/ci@MOLeToid \
    --to=felixkimbu1@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=outreachy@lists.linux.dev \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).