Skip to content

Commit 61ea33d

Browse files
LawstorantJiri Kosina
authored andcommitted
HID: pidff: Add missing spaces
Fixes checkpatch.pl errors Signed-off-by: Tomasz Pakuła <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 3f7fd8c commit 61ea33d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/hid/usbhid/hid-pidff.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ static u32 pidff_rescale_time(u16 time, struct hid_field *field)
243243
int exponent = field->unit_exponent;
244244

245245
pr_debug("time field exponent: %d\n", exponent);
246-
for (;exponent < FF_TIME_EXPONENT; exponent++)
246+
for (; exponent < FF_TIME_EXPONENT; exponent++)
247247
scaled_time *= 10;
248-
for (;exponent > FF_TIME_EXPONENT; exponent--)
248+
for (; exponent > FF_TIME_EXPONENT; exponent--)
249249
scaled_time /= 10;
250250

251251
pr_debug("time calculated from %d to %d\n", time, scaled_time);
@@ -569,7 +569,7 @@ static void pidff_set_device_control(struct pidff_device *pidff, int field)
569569
hid_dbg(pidff->hid, "DEVICE_CONTROL is a bitmask\n");
570570

571571
/* Clear current bitmask */
572-
for(i = 0; i < sizeof(pidff_device_control); i++) {
572+
for (i = 0; i < sizeof(pidff_device_control); i++) {
573573
index = pidff->control_id[i];
574574
if (index < 1)
575575
continue;
@@ -620,7 +620,7 @@ static void pidff_fetch_pool(struct pidff_device *pidff)
620620
struct hid_device *hid = pidff->hid;
621621

622622
/* 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++) {
624624
hid_hw_request(hid, pidff->reports[PID_POOL], HID_REQ_GET_REPORT);
625625
hid_hw_wait(hid);
626626

@@ -851,7 +851,7 @@ static int pidff_upload_effect(struct input_dev *dev, struct ff_effect *effect,
851851
case FF_INERTIA:
852852
case FF_FRICTION:
853853
if (!old) {
854-
switch(effect->type) {
854+
switch (effect->type) {
855855
case FF_SPRING:
856856
type_id = PID_SPRING;
857857
break;

0 commit comments

Comments
 (0)