Commit eea04b07 authored by Dilek Uzulmez's avatar Dilek Uzulmez Committed by Greg Kroah-Hartman

Staging: ste_rmi4: Add space around '/'

Add space around operator '/'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '/' (ctx:VxV)
Signed-off-by: default avatarDilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 32680d93
...@@ -334,7 +334,7 @@ static int synpatics_rmi4_touchpad_report(struct synaptics_rmi4_data *pdata, ...@@ -334,7 +334,7 @@ static int synpatics_rmi4_touchpad_report(struct synaptics_rmi4_data *pdata,
* 10 = finger present but data may not be accurate, * 10 = finger present but data may not be accurate,
* 11 = reserved for product use. * 11 = reserved for product use.
*/ */
finger_registers = (fingers_supported + 3)/4; finger_registers = (fingers_supported + 3) / 4;
data_base_addr = rfi->fn_desc.data_base_addr; data_base_addr = rfi->fn_desc.data_base_addr;
retval = synaptics_rmi4_i2c_block_read(pdata, data_base_addr, values, retval = synaptics_rmi4_i2c_block_read(pdata, data_base_addr, values,
finger_registers); finger_registers);
...@@ -350,7 +350,7 @@ static int synpatics_rmi4_touchpad_report(struct synaptics_rmi4_data *pdata, ...@@ -350,7 +350,7 @@ static int synpatics_rmi4_touchpad_report(struct synaptics_rmi4_data *pdata,
data_reg_blk_size = rfi->size_of_data_register_block; data_reg_blk_size = rfi->size_of_data_register_block;
for (finger = 0; finger < fingers_supported; finger++) { for (finger = 0; finger < fingers_supported; finger++) {
/* determine which data byte the finger status is in */ /* determine which data byte the finger status is in */
reg = finger/4; reg = finger / 4;
/* bit shift to get finger's status */ /* bit shift to get finger's status */
finger_shift = (finger % 4) * 2; finger_shift = (finger % 4) * 2;
finger_status = (values[reg] >> finger_shift) & 3; finger_status = (values[reg] >> finger_shift) & 3;
...@@ -566,7 +566,7 @@ static int synpatics_rmi4_touchpad_detect(struct synaptics_rmi4_data *pdata, ...@@ -566,7 +566,7 @@ static int synpatics_rmi4_touchpad_detect(struct synaptics_rmi4_data *pdata,
} }
pdata->fingers_supported = rfi->num_of_data_points; pdata->fingers_supported = rfi->num_of_data_points;
/* Need to get interrupt info for handling interrupts */ /* Need to get interrupt info for handling interrupts */
rfi->index_to_intr_reg = (interruptcount + 7)/8; rfi->index_to_intr_reg = (interruptcount + 7) / 8;
if (rfi->index_to_intr_reg != 0) if (rfi->index_to_intr_reg != 0)
rfi->index_to_intr_reg -= 1; rfi->index_to_intr_reg -= 1;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment