]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: vt6655: rf/wpactl/wroute use struct vnt_private
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 10 Aug 2014 14:47:01 +0000 (15:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:16 +0000 (12:23 -0700)
Replacing PSDevice.

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

index 42b257f916d3a5e3cbb30b0dbb46fc32df2e95d8..e505af91bfd042466dab27830a29f882d7f860f3 100644 (file)
@@ -746,7 +746,7 @@ static bool RFbAL2230SelectChannel(void __iomem *dwIoBase, unsigned char byChann
  *
  */
 bool RFbInit(
-       PSDevice  pDevice
+       struct vnt_private *pDevice
 )
 {
        bool bResult = true;
@@ -897,7 +897,7 @@ bool RFvWriteWakeProgSyn(void __iomem *dwIoBase, unsigned char byRFType, unsigne
  *
  */
 bool RFbSetPower(
-       PSDevice  pDevice,
+       struct vnt_private *pDevice,
        unsigned int uRATE,
        unsigned int uCH
 )
@@ -978,7 +978,7 @@ bool RFbSetPower(
  */
 
 bool RFbRawSetPower(
-       PSDevice  pDevice,
+       struct vnt_private *pDevice,
        unsigned char byPwr,
        unsigned int uRATE
 )
@@ -1042,7 +1042,7 @@ bool RFbRawSetPower(
  -*/
 void
 RFvRSSITodBm(
-       PSDevice pDevice,
+       struct vnt_private *pDevice,
        unsigned char byCurrRSSI,
        long *pldBm
        )
index ba55561c45d23d1aace420b81389e0fde5b9b6a2..be4ef88b7666863b2ce54a6e418675ad89353cfe 100644 (file)
 bool IFRFbWriteEmbedded(void __iomem *dwIoBase, unsigned long dwData);
 bool RFbSelectChannel(void __iomem *dwIoBase, unsigned char byRFType, unsigned char byChannel);
 bool RFbInit(
-       PSDevice  pDevice
+       struct vnt_private *
 );
 bool RFvWriteWakeProgSyn(void __iomem *dwIoBase, unsigned char byRFType, unsigned int uChannel);
-bool RFbSetPower(PSDevice pDevice, unsigned int uRATE, unsigned int uCH);
+bool RFbSetPower(struct vnt_private *, unsigned int uRATE, unsigned int uCH);
 bool RFbRawSetPower(
-       PSDevice  pDevice,
+       struct vnt_private *,
        unsigned char byPwr,
        unsigned int uRATE
 );
 
 void
 RFvRSSITodBm(
-       PSDevice pDevice,
+       struct vnt_private *,
        unsigned char byCurrRSSI,
        long    *pldBm
 );
index 746769c177f3eb70d62c40db436f43dd11064acf..5a1bfe9f31fab58f257241e16452af71eec9bb05 100644 (file)
@@ -83,13 +83,13 @@ static void wpadev_setup(struct net_device *dev)
  *
  */
 
-static int wpa_init_wpadev(PSDevice pDevice)
+static int wpa_init_wpadev(struct vnt_private *pDevice)
 {
-       PSDevice wpadev_priv;
+       struct vnt_private *wpadev_priv;
        struct net_device *dev = pDevice->dev;
        int ret = 0;
 
-       pDevice->wpadev = alloc_netdev(sizeof(PSDevice), "vntwpa",
+       pDevice->wpadev = alloc_netdev(sizeof(*wpadev_priv), "vntwpa",
                                       NET_NAME_UNKNOWN, wpadev_setup);
        if (pDevice->wpadev == NULL)
                return -ENOMEM;
@@ -134,7 +134,7 @@ static int wpa_init_wpadev(PSDevice pDevice)
  *
  */
 
-static int wpa_release_wpadev(PSDevice pDevice)
+static int wpa_release_wpadev(struct vnt_private *pDevice)
 {
        if (pDevice->skb) {
                dev_kfree_skb(pDevice->skb);
@@ -166,7 +166,7 @@ static int wpa_release_wpadev(PSDevice pDevice)
  *
  */
 
-int wpa_set_wpadev(PSDevice pDevice, int val)
+int wpa_set_wpadev(struct vnt_private *pDevice, int val)
 {
        if (val)
                return wpa_init_wpadev(pDevice);
@@ -188,7 +188,7 @@ int wpa_set_wpadev(PSDevice pDevice, int val)
  *
  */
 
-int wpa_set_keys(PSDevice pDevice, void *ctx,
+int wpa_set_keys(struct vnt_private *pDevice, void *ctx,
                 bool fcpfkernel) __must_hold(&pDevice->lock)
 {
        struct viawget_wpa_param *param = ctx;
@@ -412,7 +412,7 @@ int wpa_set_keys(PSDevice pDevice, void *ctx,
  *
  */
 
-static int wpa_set_wpa(PSDevice pDevice,
+static int wpa_set_wpa(struct vnt_private *pDevice,
                       struct viawget_wpa_param *param)
 {
        PSMgmtObject    pMgmt = pDevice->pMgmt;
@@ -437,7 +437,7 @@ static int wpa_set_wpa(PSDevice pDevice,
  *
  */
 
-static int wpa_set_disassociate(PSDevice pDevice,
+static int wpa_set_disassociate(struct vnt_private *pDevice,
                                struct viawget_wpa_param *param)
 {
        PSMgmtObject    pMgmt = pDevice->pMgmt;
@@ -466,7 +466,7 @@ static int wpa_set_disassociate(PSDevice pDevice,
  *
  */
 
-static int wpa_set_scan(PSDevice pDevice,
+static int wpa_set_scan(struct vnt_private *pDevice,
                        struct viawget_wpa_param *param)
 {
        spin_lock_irq(&pDevice->lock);
@@ -491,7 +491,7 @@ static int wpa_set_scan(PSDevice pDevice,
  *
  */
 
-static int wpa_get_bssid(PSDevice pDevice,
+static int wpa_get_bssid(struct vnt_private *pDevice,
                         struct viawget_wpa_param *param)
 {
        PSMgmtObject        pMgmt = pDevice->pMgmt;
@@ -515,7 +515,7 @@ static int wpa_get_bssid(PSDevice pDevice,
  *
  */
 
-static int wpa_get_ssid(PSDevice pDevice,
+static int wpa_get_ssid(struct vnt_private *pDevice,
                        struct viawget_wpa_param *param)
 {
        PSMgmtObject        pMgmt = pDevice->pMgmt;
@@ -543,7 +543,7 @@ static int wpa_get_ssid(PSDevice pDevice,
  *
  */
 
-static int wpa_get_scan(PSDevice pDevice,
+static int wpa_get_scan(struct vnt_private *pDevice,
                        struct viawget_wpa_param *param)
 {
        struct viawget_scan_result *scan_buf;
@@ -660,7 +660,7 @@ static int wpa_get_scan(PSDevice pDevice,
  *
  */
 
-static int wpa_set_associate(PSDevice pDevice,
+static int wpa_set_associate(struct vnt_private *pDevice,
                             struct viawget_wpa_param *param)
 {
        PSMgmtObject    pMgmt = pDevice->pMgmt;
@@ -804,7 +804,7 @@ static int wpa_set_associate(PSDevice pDevice,
  *
  */
 
-int wpa_ioctl(PSDevice pDevice, struct iw_point *p)
+int wpa_ioctl(struct vnt_private *pDevice, struct iw_point *p)
 {
        struct viawget_wpa_param *param;
        int ret = 0;
index f7638baf340da47a8a5e761794855861859d1598..c1b4a7292061f8fa89cdf28aad8953d6a5cc7459 100644 (file)
@@ -57,8 +57,8 @@ enum wpa_key_mgmt { KEY_MGMT_802_1X, KEY_MGMT_CCKM, KEY_MGMT_PSK, KEY_MGMT_NONE,
 
 /*---------------------  Export Functions  --------------------------*/
 
-int wpa_set_wpadev(PSDevice pDevice, int val);
-int wpa_ioctl(PSDevice pDevice, struct iw_point *p);
-int wpa_set_keys(PSDevice pDevice, void *ctx, bool fcpfkernel);
+int wpa_set_wpadev(struct vnt_private *, int val);
+int wpa_ioctl(struct vnt_private *, struct iw_point *p);
+int wpa_set_keys(struct vnt_private *, void *ctx, bool fcpfkernel);
 
 #endif // __WPACL_H__
index 4da3fef139dcc8ab10657f9b16191867099c8768..44ce6e274957a0f701162573379b2a0d129a1644 100644 (file)
@@ -62,7 +62,7 @@ static int msglevel = MSG_LEVEL_INFO;
  * Return Value: true if packet duplicate; otherwise false
  *
  */
-bool ROUTEbRelay(PSDevice pDevice, unsigned char *pbySkbData,
+bool ROUTEbRelay(struct vnt_private *pDevice, unsigned char *pbySkbData,
                 unsigned int uDataLen, unsigned int uNodeIndex)
 {
        PSMgmtObject    pMgmt = pDevice->pMgmt;
index 3abc1d36f89dedab58e9e8840c30722b7ae979f7..e59eec955cac5dda318d2b2a2072e142c9a021f0 100644 (file)
@@ -39,6 +39,7 @@
 
 /*---------------------  Export Functions  --------------------------*/
 
-bool ROUTEbRelay(PSDevice pDevice, unsigned char *pbySkbData, unsigned int uDataLen, unsigned int uNodeIndex);
+bool ROUTEbRelay(struct vnt_private *pDevice, unsigned char *pbySkbData,
+                unsigned int uDataLen, unsigned int uNodeIndex);
 
 #endif /* __WROUTE_H__ */