staging: rtl8192e: Rename rtl8192_pci_findadapter
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Sun, 19 Jul 2015 17:28:40 +0000 (19:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:26:24 +0000 (21:26 -0700)
Use naming schema found in other rtlwifi devices.
Rename rtl8192_pci_findadapter to rtl92e_check_adapter.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl8192e/rtl_pci.c
drivers/staging/rtl8192e/rtl8192e/rtl_pci.h

index 2214e6d353c13348992b8c5968d7121c656233ef..06f8d84f9112136e64b47600a1d067de699ed10f 100644 (file)
@@ -2670,7 +2670,7 @@ static int rtl8192_pci_probe(struct pci_dev *pdev,
 
        priv->ops = ops;
 
-       if (rtl8192_pci_findadapter(pdev, dev) == false)
+       if (rtl92e_check_adapter(pdev, dev) == false)
                goto err_rel_mem;
 
        dev->irq = pdev->irq;
index 6bbd1c626e24293bec5c25f2fc60c268827c3748..9fcb099e6edd3b28dc26d46e5cc26e0317e656df 100644 (file)
@@ -45,7 +45,7 @@ static void rtl8192_parse_pci_configuration(struct pci_dev *pdev,
        pci_write_config_byte(pdev, 0x70f, tmp);
 }
 
-bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev)
+bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev)
 {
        struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
        u16 VenderID;
index e8d5527a5f046d415ddea5c847a1909dc945ce64..6246841bde1555f535178a88721bdd44b10bad79 100644 (file)
@@ -29,6 +29,6 @@
 #include <linux/pci.h>
 
 struct net_device;
-bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev);
+bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev);
 
 #endif