aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrina Tirdea <irina.tirdea@intel.com>2015-06-09 14:01:38 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-06-09 14:23:25 -0400
commit0dfb35bd39d16ca2b69d5ddaa76a143c814eca45 (patch)
treeca8dc1a71e997b6fd2a3a9480c2043aea34235d5
parent5179f0ce2f96f155e3bda93b3b82f912dbaddad2 (diff)
Input: goodix - fix alignment issues
Fix alignment to match open parenthesis detected by running checkpatch.pl --strict. Signed-off-by: Irina Tirdea <irina.tirdea@intel.com> Acked-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/goodix.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index 0d93b1e5e28e..099fc466bd16 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -69,7 +69,7 @@ static const unsigned long goodix_irq_flags[] = {
69 * @len: length of the buffer to write 69 * @len: length of the buffer to write
70 */ 70 */
71static int goodix_i2c_read(struct i2c_client *client, 71static int goodix_i2c_read(struct i2c_client *client,
72 u16 reg, u8 *buf, int len) 72 u16 reg, u8 *buf, int len)
73{ 73{
74 struct i2c_msg msgs[2]; 74 struct i2c_msg msgs[2];
75 u16 wbuf = cpu_to_be16(reg); 75 u16 wbuf = cpu_to_be16(reg);
@@ -78,7 +78,7 @@ static int goodix_i2c_read(struct i2c_client *client,
78 msgs[0].flags = 0; 78 msgs[0].flags = 0;
79 msgs[0].addr = client->addr; 79 msgs[0].addr = client->addr;
80 msgs[0].len = 2; 80 msgs[0].len = 2;
81 msgs[0].buf = (u8 *) &wbuf; 81 msgs[0].buf = (u8 *)&wbuf;
82 82
83 msgs[1].flags = I2C_M_RD; 83 msgs[1].flags = I2C_M_RD;
84 msgs[1].addr = client->addr; 84 msgs[1].addr = client->addr;
@@ -199,8 +199,8 @@ static void goodix_read_config(struct goodix_ts_data *ts)
199 int error; 199 int error;
200 200
201 error = goodix_i2c_read(ts->client, GOODIX_REG_CONFIG_DATA, 201 error = goodix_i2c_read(ts->client, GOODIX_REG_CONFIG_DATA,
202 config, 202 config,
203 GOODIX_CONFIG_MAX_LENGTH); 203 GOODIX_CONFIG_MAX_LENGTH);
204 if (error) { 204 if (error) {
205 dev_warn(&ts->client->dev, 205 dev_warn(&ts->client->dev,
206 "Error reading config (%d), using defaults\n", 206 "Error reading config (%d), using defaults\n",
@@ -296,10 +296,10 @@ static int goodix_request_input_dev(struct goodix_ts_data *ts)
296 BIT_MASK(EV_KEY) | 296 BIT_MASK(EV_KEY) |
297 BIT_MASK(EV_ABS); 297 BIT_MASK(EV_ABS);
298 298
299 input_set_abs_params(ts->input_dev, ABS_MT_POSITION_X, 0, 299 input_set_abs_params(ts->input_dev, ABS_MT_POSITION_X,
300 ts->abs_x_max, 0, 0); 300 0, ts->abs_x_max, 0, 0);
301 input_set_abs_params(ts->input_dev, ABS_MT_POSITION_Y, 0, 301 input_set_abs_params(ts->input_dev, ABS_MT_POSITION_Y,
302 ts->abs_y_max, 0, 0); 302 0, ts->abs_y_max, 0, 0);
303 input_set_abs_params(ts->input_dev, ABS_MT_WIDTH_MAJOR, 0, 255, 0, 0); 303 input_set_abs_params(ts->input_dev, ABS_MT_WIDTH_MAJOR, 0, 255, 0, 0);
304 input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0); 304 input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
305 305