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 6edccb4..d1c9116 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 e2be6fc..2d613e7 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_ */