staging: rtl8192e: Rename Tx... and RxCheckStuckHandler
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 24 Aug 2022 20:14:39 +0000 (22:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 15:16:22 +0000 (17:16 +0200)
Variable name TxCheckStuckHandler and RxCheckStuckHandler is changed to
avoid CamelCase which is not accepted by checkpatch.pl

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/3041cec77df10cdff18d5466beb3b0616370b112.1661370978.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.h

index 5b3b215..ff73b8c 100644 (file)
@@ -43,8 +43,8 @@ static const struct rtl819x_ops rtl819xp_ops = {
        .rx_enable                      = rtl92e_enable_rx,
        .tx_enable                      = rtl92e_enable_tx,
        .interrupt_recognized           = rtl92e_ack_irq,
-       .TxCheckStuckHandler            = rtl92e_is_tx_stuck,
-       .RxCheckStuckHandler            = rtl92e_is_rx_stuck,
+       .tx_check_stuck_handler = rtl92e_is_tx_stuck,
+       .rx_check_stuck_handler = rtl92e_is_rx_stuck,
 };
 
 static struct pci_device_id rtl8192_pci_id_tbl[] = {
@@ -1143,7 +1143,7 @@ static enum reset_type _rtl92e_tx_check_stuck(struct net_device *dev)
        spin_unlock_irqrestore(&priv->irq_th_lock, flags);
 
        if (bCheckFwTxCnt) {
-               if (priv->ops->TxCheckStuckHandler(dev)) {
+               if (priv->ops->tx_check_stuck_handler(dev)) {
                        RT_TRACE(COMP_RESET,
                                 "TxCheckStuck(): Fw indicates no Tx condition!\n");
                        return RESET_TYPE_SILENT;
@@ -1157,7 +1157,7 @@ static enum reset_type _rtl92e_rx_check_stuck(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
 
-       if (priv->ops->RxCheckStuckHandler(dev)) {
+       if (priv->ops->rx_check_stuck_handler(dev)) {
                RT_TRACE(COMP_RESET, "RxStuck Condition\n");
                return RESET_TYPE_SILENT;
        }
index 698552a..8f254c3 100644 (file)
@@ -299,8 +299,8 @@ struct rtl819x_ops {
        void (*tx_enable)(struct net_device *dev);
        void (*interrupt_recognized)(struct net_device *dev,
                                     u32 *p_inta, u32 *p_intb);
-       bool (*TxCheckStuckHandler)(struct net_device *dev);
-       bool (*RxCheckStuckHandler)(struct net_device *dev);
+       bool (*tx_check_stuck_handler)(struct net_device *dev);
+       bool (*rx_check_stuck_handler)(struct net_device *dev);
 };
 
 struct r8192_priv {