Skip to content

Commit

Permalink
staging: vt6655: Change camel case variables to snake case
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mingzai Sun authored and Greg Kroah-Hartman committed Aug 22, 2023
1 parent 656ae4f commit 6a83264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/vt6655/srom.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
* Parameters:
* In:
* iobase - I/O base address
* byContntOffset - address of EEPROM
* contnt_offset - address of EEPROM
* Out:
* none
*
* Return Value: data read
*
*/
unsigned char SROMbyReadEmbedded(void __iomem *iobase,
unsigned char byContntOffset)
unsigned char contnt_offset)
{
unsigned short wDelay, wNoACK;
unsigned char byWait;
Expand All @@ -70,7 +70,7 @@ unsigned char SROMbyReadEmbedded(void __iomem *iobase,
iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
for (wNoACK = 0; wNoACK < W_MAX_I2CRETRY; wNoACK++) {
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 */
iowrite8(I2MCSR_EEMR, iobase + MAC_REG_I2MCSR);
Expand Down

0 comments on commit 6a83264

Please sign in to comment.