Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: fix CamelCase in fw_priv struct

Rename fields in fw_priv struct from CamelCase to snake_case.
Reported by checkpatch.

Signed-off-by: Robert Eshleman <bobbyeshleman@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Robert Eshleman and committed by
Greg Kroah-Hartman
365b0163 c4aacbb9

+9 -9
+5 -5
drivers/staging/rtl8712/hal_init.c
··· 100 100 pfwpriv->rf_config = RTL8712_RFC_1T2R; 101 101 } 102 102 pfwpriv->mp_mode = (pregpriv->mp_mode == 1) ? 1 : 0; 103 - pfwpriv->vcsType = pregpriv->vrtl_carrier_sense; /* 0:off 1:on 2:auto */ 104 - pfwpriv->vcsMode = pregpriv->vcs_type; /* 1:RTS/CTS 2:CTS to self */ 105 - /* default enable turboMode */ 106 - pfwpriv->turboMode = ((pregpriv->wifi_test == 1) ? 0 : 1); 107 - pfwpriv->lowPowerMode = pregpriv->low_power; 103 + pfwpriv->vcs_type = pregpriv->vrtl_carrier_sense; /* 0:off 1:on 2:auto */ 104 + pfwpriv->vcs_mode = pregpriv->vcs_type; /* 1:RTS/CTS 2:CTS to self */ 105 + /* default enable turbo_mode */ 106 + pfwpriv->turbo_mode = ((pregpriv->wifi_test == 1) ? 0 : 1); 107 + pfwpriv->low_power_mode = pregpriv->low_power; 108 108 } 109 109 110 110 static void update_fwhdr(struct fw_hdr *pfwhdr, const u8 *pmappedfw)
+4 -4
drivers/staging/rtl8712/rtl8712_hal.h
··· 72 72 unsigned char regulatory_class_3; /*regulatory class bit map 3*/ 73 73 unsigned char rfintfs; /* 0:SWSI, 1:HWSI, 2:HWPI*/ 74 74 unsigned char def_nettype; 75 - unsigned char turboMode; 76 - unsigned char lowPowerMode;/* 0: normal mode, 1: low power mode*/ 75 + unsigned char turbo_mode; 76 + unsigned char low_power_mode;/* 0: normal mode, 1: low power mode*/ 77 77 /*--- long word 2 ----*/ 78 78 unsigned char lbk_mode; /*0x00: normal, 0x03: MACLBK, 0x01: PHYLBK*/ 79 79 unsigned char mp_mode; /* 1: for MP use, 0: for normal driver */ 80 - unsigned char vcsType; /* 0:off 1:on 2:auto */ 81 - unsigned char vcsMode; /* 1:RTS/CTS 2:CTS to self */ 80 + unsigned char vcs_type; /* 0:off 1:on 2:auto */ 81 + unsigned char vcs_mode; /* 1:RTS/CTS 2:CTS to self */ 82 82 unsigned char rsvd022; 83 83 unsigned char rsvd023; 84 84 unsigned char rsvd024;