Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: sm750fb: ddk750_hwi2c: rename CamelCase static functions

Fix the checkpatch warning about CamelCase.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mike Rapoport and committed by
Greg Kroah-Hartman
ac118951 6bdbe62b

+8 -8
+8 -8
drivers/staging/sm750fb/ddk750_hwi2c.c
··· 60 60 } 61 61 62 62 63 - static long hwI2CWaitTXDone(void) 63 + static long hw_i2c_wait_tx_done(void) 64 64 { 65 65 unsigned int timeout; 66 66 ··· 90 90 * Return Value: 91 91 * Total number of bytes those are actually written. 92 92 */ 93 - static unsigned int hwI2CWriteData( 93 + static unsigned int hw_i2c_write_data( 94 94 unsigned char deviceAddress, 95 95 unsigned int length, 96 96 unsigned char *pBuffer ··· 125 125 POKE32(I2C_CTRL, FIELD_SET(PEEK32(I2C_CTRL), I2C_CTRL, CTRL, START)); 126 126 127 127 /* Wait until the transfer is completed. */ 128 - if (hwI2CWaitTXDone() != 0) 128 + if (hw_i2c_wait_tx_done() != 0) 129 129 break; 130 130 131 131 /* Substract length */ ··· 156 156 * Return Value: 157 157 * Total number of actual bytes read from the slave device 158 158 */ 159 - static unsigned int hwI2CReadData( 159 + static unsigned int hw_i2c_read_data( 160 160 unsigned char deviceAddress, 161 161 unsigned int length, 162 162 unsigned char *pBuffer ··· 187 187 POKE32(I2C_CTRL, FIELD_SET(PEEK32(I2C_CTRL), I2C_CTRL, CTRL, START)); 188 188 189 189 /* Wait until transaction done. */ 190 - if (hwI2CWaitTXDone() != 0) 190 + if (hw_i2c_wait_tx_done() != 0) 191 191 break; 192 192 193 193 /* Save the data to the given buffer */ ··· 226 226 { 227 227 unsigned char value = (0xFF); 228 228 229 - if (hwI2CWriteData(deviceAddress, 1, &registerIndex) == 1) 230 - hwI2CReadData(deviceAddress, 1, &value); 229 + if (hw_i2c_write_data(deviceAddress, 1, &registerIndex) == 1) 230 + hw_i2c_read_data(deviceAddress, 1, &value); 231 231 232 232 return value; 233 233 } ··· 259 259 260 260 value[0] = registerIndex; 261 261 value[1] = data; 262 - if (hwI2CWriteData(deviceAddress, 2, value) == 2) 262 + if (hw_i2c_write_data(deviceAddress, 2, value) == 2) 263 263 return 0; 264 264 265 265 return (-1);