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

HID: pidff: Add missing spaces

Fixes checkpatch.pl errors

Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>

authored by

Tomasz Pakuła and committed by
Jiri Kosina
61ea33de 3f7fd8cb

+5 -5
+5 -5
drivers/hid/usbhid/hid-pidff.c
··· 243 243 int exponent = field->unit_exponent; 244 244 245 245 pr_debug("time field exponent: %d\n", exponent); 246 - for (;exponent < FF_TIME_EXPONENT; exponent++) 246 + for (; exponent < FF_TIME_EXPONENT; exponent++) 247 247 scaled_time *= 10; 248 - for (;exponent > FF_TIME_EXPONENT; exponent--) 248 + for (; exponent > FF_TIME_EXPONENT; exponent--) 249 249 scaled_time /= 10; 250 250 251 251 pr_debug("time calculated from %d to %d\n", time, scaled_time); ··· 569 569 hid_dbg(pidff->hid, "DEVICE_CONTROL is a bitmask\n"); 570 570 571 571 /* Clear current bitmask */ 572 - for(i = 0; i < sizeof(pidff_device_control); i++) { 572 + for (i = 0; i < sizeof(pidff_device_control); i++) { 573 573 index = pidff->control_id[i]; 574 574 if (index < 1) 575 575 continue; ··· 620 620 struct hid_device *hid = pidff->hid; 621 621 622 622 /* Repeat if PID_SIMULTANEOUS_MAX < 2 to make sure it's correct */ 623 - for(i = 0; i < 20; i++) { 623 + for (i = 0; i < 20; i++) { 624 624 hid_hw_request(hid, pidff->reports[PID_POOL], HID_REQ_GET_REPORT); 625 625 hid_hw_wait(hid); 626 626 ··· 851 851 case FF_INERTIA: 852 852 case FF_FRICTION: 853 853 if (!old) { 854 - switch(effect->type) { 854 + switch (effect->type) { 855 855 case FF_SPRING: 856 856 type_id = PID_SPRING; 857 857 break;