Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2dad9cba authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman
Browse files

staging:rtl8192u: Rename SwChnlCmdID > switch_chan_cmd_id - Coding Style



Rename enumerated type to clear a CamelCase warning from checkpatch. The
change is style only. No impact on run time execution.

Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9821cb6d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1219,7 +1219,7 @@ bool rtl8192_SetRFPowerState(struct net_device *dev,
 * input:     SwChnlCmd      *CmdTable    //table to be set
 *            u32            CmdTableIdx  //variable index in table to be set
 *            u32            CmdTableSz   //table size
 *            SwChnlCmdID    CmdID        //command ID to set
 *            switch_chan_cmd_id    CmdID        //command ID to set
 *            u32            Para1
 *            u32            Para2
 *            u32            msDelay
@@ -1228,7 +1228,7 @@ bool rtl8192_SetRFPowerState(struct net_device *dev,
 * notice:
 ******************************************************************************/
static u8 rtl8192_phy_SetSwChnlCmdArray(struct SwChnlCmd *CmdTable, u32 CmdTableIdx,
					u32 CmdTableSz, enum SwChnlCmdID CmdID,
					u32 CmdTableSz, enum switch_chan_cmd_id CmdID,
					u32 Para1, u32 Para2, u32 msDelay)
{
	struct SwChnlCmd *pCmd;
+2 −2
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
#define MAX_RFDEPENDCMD_CNT 16
#define MAX_POSTCMD_CNT 16

enum SwChnlCmdID {
enum switch_chan_cmd_id {
	CmdID_End,
	CmdID_SetTxPowerLevel,
	CmdID_BBRegWrite10,
@@ -20,7 +20,7 @@ enum SwChnlCmdID {
/* -----------------------Define structure---------------------- */
/* 1. Switch channel related */
struct SwChnlCmd {
	enum SwChnlCmdID	CmdID;
	enum switch_chan_cmd_id	CmdID;
	u32		        Para1;
	u32		        Para2;
	u32		        msDelay;