From: Dilek Uzulmez Date: Mon, 22 Feb 2016 23:01:07 +0000 (+0200) Subject: Staging: ste_rmi4: Add space around '/' X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eea04b072d93ef0c2b6154e5f9c7a422767944be;p=linux-beck.git 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: Dilek Uzulmez Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c b/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c index 54c17b1186d5..850a808f7d90 100644 --- a/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c +++ b/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c @@ -334,7 +334,7 @@ static int synpatics_rmi4_touchpad_report(struct synaptics_rmi4_data *pdata, * 10 = finger present but data may not be accurate, * 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; retval = synaptics_rmi4_i2c_block_read(pdata, data_base_addr, values, finger_registers); @@ -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; for (finger = 0; finger < fingers_supported; finger++) { /* determine which data byte the finger status is in */ - reg = finger/4; + reg = finger / 4; /* bit shift to get finger's status */ finger_shift = (finger % 4) * 2; finger_status = (values[reg] >> finger_shift) & 3; @@ -566,7 +566,7 @@ static int synpatics_rmi4_touchpad_detect(struct synaptics_rmi4_data *pdata, } pdata->fingers_supported = rfi->num_of_data_points; /* 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) rfi->index_to_intr_reg -= 1; /*