mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
staging: sm750fb: rename hwI2CWriteReg to sm750_hw_i2c_write_reg
Fix the checkpatch warning about CamelCase Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5ccf734003
commit
6bdbe62b9d
@ -249,7 +249,7 @@ unsigned char sm750_hw_i2c_read_reg(
|
||||
* 0 - Success
|
||||
* -1 - Fail
|
||||
*/
|
||||
int hwI2CWriteReg(
|
||||
int sm750_hw_i2c_write_reg(
|
||||
unsigned char deviceAddress,
|
||||
unsigned char registerIndex,
|
||||
unsigned char data
|
||||
|
@ -6,5 +6,5 @@ int sm750_hw_i2c_init(unsigned char busSpeedMode);
|
||||
void sm750_hw_i2c_close(void);
|
||||
|
||||
unsigned char sm750_hw_i2c_read_reg(unsigned char deviceAddress, unsigned char registerIndex);
|
||||
int hwI2CWriteReg(unsigned char deviceAddress, unsigned char registerIndex, unsigned char data);
|
||||
int sm750_hw_i2c_write_reg(unsigned char deviceAddress, unsigned char registerIndex, unsigned char data);
|
||||
#endif
|
||||
|
@ -11,7 +11,7 @@
|
||||
#define USE_HW_I2C
|
||||
|
||||
#ifdef USE_HW_I2C
|
||||
#define i2cWriteReg hwI2CWriteReg
|
||||
#define i2cWriteReg sm750_hw_i2c_write_reg
|
||||
#define i2cReadReg sm750_hw_i2c_read_reg
|
||||
#else
|
||||
#define i2cWriteReg swI2CWriteReg
|
||||
|
Loading…
Reference in New Issue
Block a user