Skip to content

Commit 6a83264

Browse files
Mingzai Sungregkh
authored andcommitted
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>
1 parent 656ae4f commit 6a83264

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/staging/vt6655/srom.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949
* Parameters:
5050
* In:
5151
* iobase - I/O base address
52-
* byContntOffset - address of EEPROM
52+
* contnt_offset - address of EEPROM
5353
* Out:
5454
* none
5555
*
5656
* Return Value: data read
5757
*
5858
*/
5959
unsigned char SROMbyReadEmbedded(void __iomem *iobase,
60-
unsigned char byContntOffset)
60+
unsigned char contnt_offset)
6161
{
6262
unsigned short wDelay, wNoACK;
6363
unsigned char byWait;
@@ -70,7 +70,7 @@ unsigned char SROMbyReadEmbedded(void __iomem *iobase,
7070
iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
7171
for (wNoACK = 0; wNoACK < W_MAX_I2CRETRY; wNoACK++) {
7272
iowrite8(EEP_I2C_DEV_ID, iobase + MAC_REG_I2MTGID);
73-
iowrite8(byContntOffset, iobase + MAC_REG_I2MTGAD);
73+
iowrite8(contnt_offset, iobase + MAC_REG_I2MTGAD);
7474

7575
/* issue read command */
7676
iowrite8(I2MCSR_EEMR, iobase + MAC_REG_I2MCSR);

0 commit comments

Comments
 (0)