diff options
author | Matej Dujava | 2017-05-16 11:20:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-05-18 15:57:25 +0200 |
commit | c975045656bb7fac6c077d1f075ce67b26e5b875 (patch) | |
tree | 1d631ddadf14e2f7429e106cd76974c8116e9a69 /drivers/staging/sm750fb/ddk750_swi2c.h | |
parent | staging: speakup: flush tty buffers and ensure hardware flow control (diff) | |
download | kernel-qcow2-linux-c975045656bb7fac6c077d1f075ce67b26e5b875.tar.gz kernel-qcow2-linux-c975045656bb7fac6c077d1f075ce67b26e5b875.tar.xz kernel-qcow2-linux-c975045656bb7fac6c077d1f075ce67b26e5b875.zip |
staging: sm750fb: fix length of lines, function calls and declaration
This patch breaks lines that are longer than 80 characters and joins
together those, that are too short and can be placed at one.
Function calls and declarations are updated to fit kernel code style.
Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_swi2c.h')
-rw-r--r-- | drivers/staging/sm750fb/ddk750_swi2c.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/drivers/staging/sm750fb/ddk750_swi2c.h b/drivers/staging/sm750fb/ddk750_swi2c.h index 5a9466efc7bd..3b8a96d6d25a 100644 --- a/drivers/staging/sm750fb/ddk750_swi2c.h +++ b/drivers/staging/sm750fb/ddk750_swi2c.h @@ -28,10 +28,7 @@ * -1 - Fail to initialize the i2c * 0 - Success */ -long sm750_sw_i2c_init( - unsigned char clk_gpio, - unsigned char data_gpio -); +long sm750_sw_i2c_init(unsigned char clk_gpio, unsigned char data_gpio); /* * This function reads the slave device's register @@ -44,10 +41,7 @@ long sm750_sw_i2c_init( * Return Value: * Register value */ -unsigned char sm750_sw_i2c_read_reg( - unsigned char addr, - unsigned char reg -); +unsigned char sm750_sw_i2c_read_reg(unsigned char addr, unsigned char reg); /* * This function writes a value to the slave device's register @@ -62,10 +56,8 @@ unsigned char sm750_sw_i2c_read_reg( * 0 - Success * -1 - Fail */ -long sm750_sw_i2c_write_reg( - unsigned char addr, - unsigned char reg, - unsigned char data -); +long sm750_sw_i2c_write_reg(unsigned char addr, + unsigned char reg, + unsigned char data); #endif /* _SWI2C_H_ */ |