Skip to content

Commit 636a89d

Browse files
Jiri SlabyJiri Kosina
authored andcommitted
HID: fix some indenting issues
Some drivers indent some lines in a very weird manner. Fix that. Signed-off-by: Jiri Slaby <[email protected]> Reviewed-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent b2c68a2 commit 636a89d

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

drivers/hid/hid-aureal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ static __u8 *aureal_report_fixup(struct hid_device *hdev, __u8 *rdesc,
2323
if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) {
2424
dev_info(&hdev->dev, "fixing Aureal Cy se W-01RN USB_V3.1 report descriptor.\n");
2525
rdesc[53] = 0x65;
26-
} return rdesc;
26+
}
27+
return rdesc;
2728
}
2829

2930
static const struct hid_device_id aureal_devices[] = {

drivers/hid/hid-elecom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static __u8 *elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc,
2727
hid_info(hdev, "Fixing up Elecom BM084 report descriptor\n");
2828
rdesc[47] = 0x00;
2929
}
30-
return rdesc;
30+
return rdesc;
3131
}
3232

3333
static const struct hid_device_id elecom_devices[] = {

drivers/hid/hid-prodikeys.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ static int pcmidi_handle_report4(struct pcmidi_snd *pm, u8 *data)
427427
pm->midi_octave = 2;
428428
dbg_hid("pcmidi mode: %d octave: %d\n",
429429
pm->midi_mode, pm->midi_octave);
430-
continue;
430+
continue;
431431
} else
432432
key = KEY_MESSENGER;
433433
break;
@@ -695,7 +695,7 @@ static int pcmidi_snd_initialise(struct pcmidi_snd *pm)
695695
if (err < 0) {
696696
pk_error("failed to register pc-midi sound card: error %d\n",
697697
err);
698-
goto fail_register;
698+
goto fail_register;
699699
}
700700

701701
dbg_hid("pcmidi_snd_initialise finished ok\n");

drivers/hid/hid-sensor-hub.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ static int sensor_hub_probe(struct hid_device *hdev,
646646
GFP_KERNEL);
647647
if (sd->hid_sensor_hub_client_devs == NULL) {
648648
hid_err(hdev, "Failed to allocate memory for mfd cells\n");
649-
ret = -ENOMEM;
650-
goto err_stop_hw;
649+
ret = -ENOMEM;
650+
goto err_stop_hw;
651651
}
652652

653653
for (i = 0; i < hdev->maxcollection; ++i) {
@@ -684,8 +684,8 @@ static int sensor_hub_probe(struct hid_device *hdev,
684684
collection->usage);
685685
if (name == NULL) {
686686
hid_err(hdev, "Failed MFD device name\n");
687-
ret = -ENOMEM;
688-
goto err_stop_hw;
687+
ret = -ENOMEM;
688+
goto err_stop_hw;
689689
}
690690
sd->hid_sensor_hub_client_devs[
691691
sd->hid_sensor_client_cnt].name = name;

0 commit comments

Comments
 (0)