]> www.infradead.org Git - linux.git/commitdiff
Staging: rtl8192e: Rename variable CmdID_WritePortUchar
authorTree Davies <tdavies@darkphysics.net>
Wed, 21 Aug 2024 03:08:56 +0000 (20:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2024 07:46:50 +0000 (15:46 +0800)
Rename variable CmdID_WritePortUchar to cmd_id_write_port_uchar
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240821030856.57423-7-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtllib.h

index c49dd8094c7cbe94a52d897e168cb3f6d310ad11..0e8ca8bef00d2c6d73a09ae7da119802162272f8 100644 (file)
@@ -624,7 +624,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
                                rtl92e_writew(dev, CurrentCmd->Para1,
                                              CurrentCmd->Para2);
                                break;
-                       case CmdID_WritePortUchar:
+                       case cmd_id_write_port_uchar:
                                rtl92e_writeb(dev, CurrentCmd->Para1,
                                              CurrentCmd->Para2);
                                break;
index 31cd795a7c04037ee7adc9a997f6f026cf149fad..a332759367ec015970c9cb9a05ec765ab253665e 100644 (file)
@@ -158,7 +158,7 @@ enum sw_chnl_cmd_id {
        cmd_id_bbreg_write10,
        cmd_id_write_port_ulong,
        cmd_id_write_port_ushort,
-       CmdID_WritePortUchar,
+       cmd_id_write_port_uchar,
        CmdID_RF_WriteReg,
 };