Skip to content

Commit 42a2bd6

Browse files
LawstorantJiri Kosina
authored andcommitted
HID: pidff: Fix missing blank lines after declarations
Fixes chackpatch.pl warnings Signed-off-by: Tomasz Pakuła <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 18243ef commit 42a2bd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/hid/usbhid/hid-pidff.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ static u32 pidff_rescale_time(u16 time, struct hid_field *field)
241241
{
242242
u32 scaled_time = time;
243243
int exponent = field->unit_exponent;
244-
pr_debug("time field exponent: %d\n", exponent);
245244

245+
pr_debug("time field exponent: %d\n", exponent);
246246
for (;exponent < FF_TIME_EXPONENT; exponent++)
247247
scaled_time *= 10;
248248
for (;exponent > FF_TIME_EXPONENT; exponent--)
@@ -332,6 +332,7 @@ static int pidff_needs_set_envelope(struct ff_envelope *envelope,
332332
struct ff_envelope *old)
333333
{
334334
bool needs_new_envelope;
335+
335336
needs_new_envelope = envelope->attack_level != 0 ||
336337
envelope->fade_level != 0 ||
337338
envelope->attack_length != 0 ||
@@ -715,6 +716,7 @@ static void pidff_playback_pid(struct pidff_device *pidff, int pid_id, int n)
715716
static int pidff_playback(struct input_dev *dev, int effect_id, int value)
716717
{
717718
struct pidff_device *pidff = dev->ff->private;
719+
718720
pidff_playback_pid(pidff, pidff->pid_id[effect_id], value);
719721
return 0;
720722
}
@@ -1207,6 +1209,7 @@ static int pidff_find_effects(struct pidff_device *pidff,
12071209

12081210
for (i = 0; i < sizeof(pidff_effect_types); i++) {
12091211
int pidff_type = pidff->type_id[i];
1212+
12101213
if (pidff->set_effect_type->usage[pidff_type].hid !=
12111214
pidff->create_new_effect_type->usage[pidff_type].hid) {
12121215
hid_err(pidff->hid,

0 commit comments

Comments
 (0)