Skip to content

Commit

Permalink
hid-xpadneo: Fix indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Mar 28, 2021
1 parent 8716cc0 commit eb8516e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,8 @@ static int xpadneo_init_hw(struct hid_device *hdev)
int offset = strnlen(xdata->gamepad->uniq, 18);
if ((strncasecmp(xdata->gamepad->uniq, param_quirks.args[i], offset) == 0)
&& ((param_quirks.args[i][offset] == ':')
|| (param_quirks.args[i][offset] == '+')
|| (param_quirks.args[i][offset] == '-'))) {
|| (param_quirks.args[i][offset] == '+')
|| (param_quirks.args[i][offset] == '-'))) {
char *quirks_arg = &param_quirks.args[i][offset + 1];
u32 quirks = 0;
ret = kstrtou32(quirks_arg, 0, &quirks);
Expand All @@ -1115,10 +1115,12 @@ static int xpadneo_init_hw(struct hid_device *hdev)
hid_info(hdev, "quirks override: %s\n", xdata->gamepad->uniq);
xdata->quirks = quirks;
} else if (param_quirks.args[i][offset] == '-') {
hid_info(hdev, "quirks removed: %s flag 0x%08X\n", xdata->gamepad->uniq, quirks);
hid_info(hdev, "quirks removed: %s flag 0x%08X\n",
xdata->gamepad->uniq, quirks);
xdata->quirks &= ~quirks;
} else {
hid_info(hdev, "quirks added: %s flags 0x%08X\n", xdata->gamepad->uniq, quirks);
hid_info(hdev, "quirks added: %s flags 0x%08X\n",
xdata->gamepad->uniq, quirks);
xdata->quirks |= quirks;
}
break;
Expand Down

0 comments on commit eb8516e

Please sign in to comment.