]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6655: set_channel replace void handler.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 22 Nov 2015 09:07:16 +0000 (09:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:02:03 +0000 (19:02 -0800)
Replace with struct vnt_private.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/channel.c
drivers/staging/vt6655/channel.h

index 6edccb42231ee193180570172a43a3ae7e375ec4..d1c91165f769dc543b390fd0112c2ca0e3e94d06 100644 (file)
@@ -174,9 +174,8 @@ void vnt_init_bands(struct vnt_private *priv)
  * Return Value: true if succeeded; false if failed.
  *
  */
-bool set_channel(void *pDeviceHandler, struct ieee80211_channel *ch)
+bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
 {
-       struct vnt_private *priv = pDeviceHandler;
        bool bResult = true;
 
        if (priv->byCurrentCh == ch->hw_value)
index e2be6fca5f26d7d5e29c4699e051707b7a6da382..2d613e7f169ca4ab208c080eccc3121ef2b6b24d 100644 (file)
@@ -27,6 +27,6 @@
 
 void vnt_init_bands(struct vnt_private *);
 
-bool set_channel(void *pDeviceHandler, struct ieee80211_channel *);
+bool set_channel(struct vnt_private *, struct ieee80211_channel *);
 
 #endif /* _CHANNEL_H_ */