diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2016-03-06 12:57:12 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-10 19:19:16 -0800 |
commit | efa21f9d0ddd140e73830b051a0fb45893c2d7ae (patch) | |
tree | 33b83c0bc1be85b3343ce7fbdb14986e54cde599 /drivers | |
parent | 0e7997c18fcce692c994c45dcf9e6f3db2fdad17 (diff) | |
download | linux-efa21f9d0ddd140e73830b051a0fb45893c2d7ae.tar.bz2 |
staging: vt6655: mac.c replace dwData with data.
Removing camel case and type prefix.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/vt6655/mac.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c index e762c331327f..45196c6e9e12 100644 --- a/drivers/staging/vt6655/mac.c +++ b/drivers/staging/vt6655/mac.c @@ -748,14 +748,14 @@ void MACvOneShotTimer1MicroSec(struct vnt_private *priv, unsigned int uDelayTime } void MACvSetMISCFifo(struct vnt_private *priv, unsigned short offset, - u32 dwData) + u32 data) { void __iomem *io_base = priv->PortOffset; if (offset > 273) return; iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); - iowrite32(dwData, io_base + MAC_REG_MISCFFDATA); + iowrite32(data, io_base + MAC_REG_MISCFFDATA); iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); } @@ -804,7 +804,7 @@ void MACvSetKeyEntry(struct vnt_private *priv, unsigned short wKeyCtl, { void __iomem *io_base = priv->PortOffset; unsigned short offset; - u32 dwData; + u32 data; int ii; if (byLocalID <= 1) @@ -814,30 +814,30 @@ void MACvSetKeyEntry(struct vnt_private *priv, unsigned short wKeyCtl, offset = MISCFIFO_KEYETRY0; offset += (uEntryIdx * MISCFIFO_KEYENTRYSIZE); - dwData = 0; - dwData |= wKeyCtl; - dwData <<= 16; - dwData |= MAKEWORD(*(pbyAddr+4), *(pbyAddr+5)); + data = 0; + data |= wKeyCtl; + data <<= 16; + data |= MAKEWORD(*(pbyAddr + 4), *(pbyAddr + 5)); pr_debug("1. offset: %d, Data: %X, KeyCtl:%X\n", - offset, dwData, wKeyCtl); + offset, data, wKeyCtl); iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); - iowrite32(dwData, io_base + MAC_REG_MISCFFDATA); + iowrite32(data, io_base + MAC_REG_MISCFFDATA); iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); offset++; - dwData = 0; - dwData |= *(pbyAddr+3); - dwData <<= 8; - dwData |= *(pbyAddr+2); - dwData <<= 8; - dwData |= *(pbyAddr+1); - dwData <<= 8; - dwData |= *(pbyAddr+0); - pr_debug("2. offset: %d, Data: %X\n", offset, dwData); + data = 0; + data |= *(pbyAddr + 3); + data <<= 8; + data |= *(pbyAddr + 2); + data <<= 8; + data |= *(pbyAddr + 1); + data <<= 8; + data |= *pbyAddr; + pr_debug("2. offset: %d, Data: %X\n", offset, data); iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); - iowrite32(dwData, io_base + MAC_REG_MISCFFDATA); + iowrite32(data, io_base + MAC_REG_MISCFFDATA); iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); offset++; |