mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 18:13:26 -04:00
staging: rtl8188eu: rename variable
Rename variable to avoid CamelCase. tmpV16 -> tmpv16 Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b5a870456f
commit
3cedbfb851
@@ -32,29 +32,29 @@ enum{
|
||||
void efuse_power_switch(struct adapter *pAdapter, u8 write, u8 pwrstate)
|
||||
{
|
||||
u8 tempval;
|
||||
u16 tmpV16;
|
||||
u16 tmpv16;
|
||||
|
||||
if (pwrstate) {
|
||||
usb_write8(pAdapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_ON);
|
||||
|
||||
/* 1.2V Power: From VDDON with Power Cut(0x0000h[15]), default valid */
|
||||
tmpV16 = usb_read16(pAdapter, REG_SYS_ISO_CTRL);
|
||||
if (!(tmpV16 & PWC_EV12V)) {
|
||||
tmpV16 |= PWC_EV12V;
|
||||
usb_write16(pAdapter, REG_SYS_ISO_CTRL, tmpV16);
|
||||
tmpv16 = usb_read16(pAdapter, REG_SYS_ISO_CTRL);
|
||||
if (!(tmpv16 & PWC_EV12V)) {
|
||||
tmpv16 |= PWC_EV12V;
|
||||
usb_write16(pAdapter, REG_SYS_ISO_CTRL, tmpv16);
|
||||
}
|
||||
/* Reset: 0x0000h[28], default valid */
|
||||
tmpV16 = usb_read16(pAdapter, REG_SYS_FUNC_EN);
|
||||
if (!(tmpV16 & FEN_ELDR)) {
|
||||
tmpV16 |= FEN_ELDR;
|
||||
usb_write16(pAdapter, REG_SYS_FUNC_EN, tmpV16);
|
||||
tmpv16 = usb_read16(pAdapter, REG_SYS_FUNC_EN);
|
||||
if (!(tmpv16 & FEN_ELDR)) {
|
||||
tmpv16 |= FEN_ELDR;
|
||||
usb_write16(pAdapter, REG_SYS_FUNC_EN, tmpv16);
|
||||
}
|
||||
|
||||
/* Clock: Gated(0x0008h[5]) 8M(0x0008h[1]) clock from ANA, default valid */
|
||||
tmpV16 = usb_read16(pAdapter, REG_SYS_CLKR);
|
||||
if ((!(tmpV16 & LOADER_CLK_EN)) || (!(tmpV16 & ANA8M))) {
|
||||
tmpV16 |= (LOADER_CLK_EN | ANA8M);
|
||||
usb_write16(pAdapter, REG_SYS_CLKR, tmpV16);
|
||||
tmpv16 = usb_read16(pAdapter, REG_SYS_CLKR);
|
||||
if ((!(tmpv16 & LOADER_CLK_EN)) || (!(tmpv16 & ANA8M))) {
|
||||
tmpv16 |= (LOADER_CLK_EN | ANA8M);
|
||||
usb_write16(pAdapter, REG_SYS_CLKR, tmpv16);
|
||||
}
|
||||
|
||||
if (write) {
|
||||
|
||||
Reference in New Issue
Block a user