mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-08 14:54:23 +08:00
staging: vt6655: Change camel case variables to snake case
Change camel case to snake case and remove the unneeded "by" prefix. Issue found by checkpatch. Signed-off-by: Mingzai Sun <szp2017@gmail.com> Link: https://lore.kernel.org/r/20230812151710.462685-1-szp2017@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
656ae4f48a
commit
6a83264945
@ -49,7 +49,7 @@
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* In:
|
* In:
|
||||||
* iobase - I/O base address
|
* iobase - I/O base address
|
||||||
* byContntOffset - address of EEPROM
|
* contnt_offset - address of EEPROM
|
||||||
* Out:
|
* Out:
|
||||||
* none
|
* none
|
||||||
*
|
*
|
||||||
@ -57,7 +57,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
unsigned char SROMbyReadEmbedded(void __iomem *iobase,
|
unsigned char SROMbyReadEmbedded(void __iomem *iobase,
|
||||||
unsigned char byContntOffset)
|
unsigned char contnt_offset)
|
||||||
{
|
{
|
||||||
unsigned short wDelay, wNoACK;
|
unsigned short wDelay, wNoACK;
|
||||||
unsigned char byWait;
|
unsigned char byWait;
|
||||||
@ -70,7 +70,7 @@ unsigned char SROMbyReadEmbedded(void __iomem *iobase,
|
|||||||
iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
|
iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
|
||||||
for (wNoACK = 0; wNoACK < W_MAX_I2CRETRY; wNoACK++) {
|
for (wNoACK = 0; wNoACK < W_MAX_I2CRETRY; wNoACK++) {
|
||||||
iowrite8(EEP_I2C_DEV_ID, iobase + MAC_REG_I2MTGID);
|
iowrite8(EEP_I2C_DEV_ID, iobase + MAC_REG_I2MTGID);
|
||||||
iowrite8(byContntOffset, iobase + MAC_REG_I2MTGAD);
|
iowrite8(contnt_offset, iobase + MAC_REG_I2MTGAD);
|
||||||
|
|
||||||
/* issue read command */
|
/* issue read command */
|
||||||
iowrite8(I2MCSR_EEMR, iobase + MAC_REG_I2MCSR);
|
iowrite8(I2MCSR_EEMR, iobase + MAC_REG_I2MCSR);
|
||||||
|
Loading…
Reference in New Issue
Block a user