Commit 636a89d4 authored by Jiri Slaby's avatar Jiri Slaby Committed by Jiri Kosina

HID: fix some indenting issues

Some drivers indent some lines in a very weird manner. Fix that.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Reviewed-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent b2c68a2f
...@@ -23,7 +23,8 @@ static __u8 *aureal_report_fixup(struct hid_device *hdev, __u8 *rdesc, ...@@ -23,7 +23,8 @@ static __u8 *aureal_report_fixup(struct hid_device *hdev, __u8 *rdesc,
if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) { if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) {
dev_info(&hdev->dev, "fixing Aureal Cy se W-01RN USB_V3.1 report descriptor.\n"); dev_info(&hdev->dev, "fixing Aureal Cy se W-01RN USB_V3.1 report descriptor.\n");
rdesc[53] = 0x65; rdesc[53] = 0x65;
} return rdesc; }
return rdesc;
} }
static const struct hid_device_id aureal_devices[] = { static const struct hid_device_id aureal_devices[] = {
......
...@@ -27,7 +27,7 @@ static __u8 *elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc, ...@@ -27,7 +27,7 @@ static __u8 *elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc,
hid_info(hdev, "Fixing up Elecom BM084 report descriptor\n"); hid_info(hdev, "Fixing up Elecom BM084 report descriptor\n");
rdesc[47] = 0x00; rdesc[47] = 0x00;
} }
return rdesc; return rdesc;
} }
static const struct hid_device_id elecom_devices[] = { static const struct hid_device_id elecom_devices[] = {
......
...@@ -427,7 +427,7 @@ static int pcmidi_handle_report4(struct pcmidi_snd *pm, u8 *data) ...@@ -427,7 +427,7 @@ static int pcmidi_handle_report4(struct pcmidi_snd *pm, u8 *data)
pm->midi_octave = 2; pm->midi_octave = 2;
dbg_hid("pcmidi mode: %d octave: %d\n", dbg_hid("pcmidi mode: %d octave: %d\n",
pm->midi_mode, pm->midi_octave); pm->midi_mode, pm->midi_octave);
continue; continue;
} else } else
key = KEY_MESSENGER; key = KEY_MESSENGER;
break; break;
...@@ -695,7 +695,7 @@ static int pcmidi_snd_initialise(struct pcmidi_snd *pm) ...@@ -695,7 +695,7 @@ static int pcmidi_snd_initialise(struct pcmidi_snd *pm)
if (err < 0) { if (err < 0) {
pk_error("failed to register pc-midi sound card: error %d\n", pk_error("failed to register pc-midi sound card: error %d\n",
err); err);
goto fail_register; goto fail_register;
} }
dbg_hid("pcmidi_snd_initialise finished ok\n"); dbg_hid("pcmidi_snd_initialise finished ok\n");
......
...@@ -646,8 +646,8 @@ static int sensor_hub_probe(struct hid_device *hdev, ...@@ -646,8 +646,8 @@ static int sensor_hub_probe(struct hid_device *hdev,
GFP_KERNEL); GFP_KERNEL);
if (sd->hid_sensor_hub_client_devs == NULL) { if (sd->hid_sensor_hub_client_devs == NULL) {
hid_err(hdev, "Failed to allocate memory for mfd cells\n"); hid_err(hdev, "Failed to allocate memory for mfd cells\n");
ret = -ENOMEM; ret = -ENOMEM;
goto err_stop_hw; goto err_stop_hw;
} }
for (i = 0; i < hdev->maxcollection; ++i) { for (i = 0; i < hdev->maxcollection; ++i) {
...@@ -684,8 +684,8 @@ static int sensor_hub_probe(struct hid_device *hdev, ...@@ -684,8 +684,8 @@ static int sensor_hub_probe(struct hid_device *hdev,
collection->usage); collection->usage);
if (name == NULL) { if (name == NULL) {
hid_err(hdev, "Failed MFD device name\n"); hid_err(hdev, "Failed MFD device name\n");
ret = -ENOMEM; ret = -ENOMEM;
goto err_stop_hw; goto err_stop_hw;
} }
sd->hid_sensor_hub_client_devs[ sd->hid_sensor_hub_client_devs[
sd->hid_sensor_client_cnt].name = name; sd->hid_sensor_client_cnt].name = name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment