staging: sm750fb: ddk750_hw_i2c: rename busSpeedMode
authorMike Rapoport <mike.rapoport@gmail.com>
Sat, 12 Sep 2015 08:07:43 +0000 (11:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2015 15:50:47 +0000 (08:50 -0700)
rename CamelCase parameter in sm750_hw_i2c_init()

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_hwi2c.c
drivers/staging/sm750fb/ddk750_hwi2c.h

index 65c15461c2fec3aafc288e90d305608615cbeffe..a35505dffa4eefdf9fd46eecaa1e89f87ed817ea 100644 (file)
@@ -10,7 +10,7 @@
 
 
 int sm750_hw_i2c_init(
-unsigned char busSpeedMode
+unsigned char bus_speed_mode
 )
 {
        unsigned int value;
@@ -29,7 +29,7 @@ unsigned char busSpeedMode
 
        /* Enable the I2C Controller and set the bus speed mode */
        value = PEEK32(I2C_CTRL);
-       if (busSpeedMode == 0)
+       if (bus_speed_mode == 0)
                value = FIELD_SET(value, I2C_CTRL, MODE, STANDARD);
        else
                value = FIELD_SET(value, I2C_CTRL, MODE, FAST);
index 29ce48daaf08b48190a02389e90ed6372faa0aca..5872f9c0010ce42cefdd1e2bf7deba44f18df748 100644 (file)
@@ -2,7 +2,7 @@
 #define DDK750_HWI2C_H__
 
 /* hwi2c functions */
-int sm750_hw_i2c_init(unsigned char busSpeedMode);
+int sm750_hw_i2c_init(unsigned char bus_speed_mode);
 void sm750_hw_i2c_close(void);
 
 unsigned char sm750_hw_i2c_read_reg(unsigned char deviceAddress, unsigned char registerIndex);