Skip to content

Commit 09593e3

Browse files
ao2Jiri Kosina
authored andcommitted
HID: sony: fix errors from scripts/checkpatch.pl
./scripts/checkpatch.pl \ --types "SPACING,TRAILING_WHITESPACE,POINTER_LOCATION,CODE_INDENT" \ -f drivers/hid/hid-sony.c ERROR: trailing whitespace #933: FILE: drivers/hid/hid-sony.c:933: +^I * $ ERROR: space prohibited after that open square bracket '[' #947: FILE: drivers/hid/hid-sony.c:947: + [ 1] = BTN_TRIGGER_HAPPY1, ERROR: space prohibited after that open square bracket '[' #948: FILE: drivers/hid/hid-sony.c:948: + [ 2] = BTN_TRIGGER_HAPPY2, ERROR: space prohibited after that open square bracket '[' #949: FILE: drivers/hid/hid-sony.c:949: + [ 3] = BTN_TRIGGER_HAPPY3, ERROR: space prohibited after that open square bracket '[' #950: FILE: drivers/hid/hid-sony.c:950: + [ 4] = BTN_TRIGGER_HAPPY4, ERROR: space prohibited after that open square bracket '[' #951: FILE: drivers/hid/hid-sony.c:951: + [ 5] = BTN_TRIGGER_HAPPY5, ERROR: space prohibited after that open square bracket '[' #952: FILE: drivers/hid/hid-sony.c:952: + [ 6] = BTN_TRIGGER_HAPPY6, ERROR: space prohibited after that open square bracket '[' #953: FILE: drivers/hid/hid-sony.c:953: + [ 7] = BTN_TRIGGER_HAPPY7, ERROR: space prohibited after that open square bracket '[' #954: FILE: drivers/hid/hid-sony.c:954: + [ 8] = BTN_TRIGGER_HAPPY8, ERROR: space prohibited after that open square bracket '[' #955: FILE: drivers/hid/hid-sony.c:955: + [ 9] = BTN_TRIGGER_HAPPY9, ERROR: "(foo*)" should be "(foo *)" #1032: FILE: drivers/hid/hid-sony.c:1032: + void(*send_output_report)(struct sony_sc*); WARNING: missing space after return type #1032: FILE: drivers/hid/hid-sony.c:1032: + void(*send_output_report)(struct sony_sc*); ERROR: "(foo*)" should be "(foo *)" #2261: FILE: drivers/hid/hid-sony.c:2261: + void(*send_output_report)(struct sony_sc*)) WARNING: missing space after return type #2261: FILE: drivers/hid/hid-sony.c:2261: + void(*send_output_report)(struct sony_sc*)) ERROR: code indent should use tabs where possible #2449: FILE: drivers/hid/hid-sony.c:2449: + */$ total: 13 errors, 2 warnings, 2570 lines checked Signed-off-by: Antonio Ospite <[email protected]> Acked-by: Frank Praznik <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent ad07b7a commit 09593e3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

drivers/hid/hid-sony.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ static const unsigned int buzz_keymap[] = {
930930
/*
931931
* The controller has 4 remote buzzers, each with one LED and 5
932932
* buttons.
933-
*
933+
*
934934
* We use the mapping chosen by the controller, which is:
935935
*
936936
* Key Offset
@@ -944,15 +944,15 @@ static const unsigned int buzz_keymap[] = {
944944
* So, for example, the orange button on the third buzzer is mapped to
945945
* BTN_TRIGGER_HAPPY14
946946
*/
947-
[ 1] = BTN_TRIGGER_HAPPY1,
948-
[ 2] = BTN_TRIGGER_HAPPY2,
949-
[ 3] = BTN_TRIGGER_HAPPY3,
950-
[ 4] = BTN_TRIGGER_HAPPY4,
951-
[ 5] = BTN_TRIGGER_HAPPY5,
952-
[ 6] = BTN_TRIGGER_HAPPY6,
953-
[ 7] = BTN_TRIGGER_HAPPY7,
954-
[ 8] = BTN_TRIGGER_HAPPY8,
955-
[ 9] = BTN_TRIGGER_HAPPY9,
947+
[1] = BTN_TRIGGER_HAPPY1,
948+
[2] = BTN_TRIGGER_HAPPY2,
949+
[3] = BTN_TRIGGER_HAPPY3,
950+
[4] = BTN_TRIGGER_HAPPY4,
951+
[5] = BTN_TRIGGER_HAPPY5,
952+
[6] = BTN_TRIGGER_HAPPY6,
953+
[7] = BTN_TRIGGER_HAPPY7,
954+
[8] = BTN_TRIGGER_HAPPY8,
955+
[9] = BTN_TRIGGER_HAPPY9,
956956
[10] = BTN_TRIGGER_HAPPY10,
957957
[11] = BTN_TRIGGER_HAPPY11,
958958
[12] = BTN_TRIGGER_HAPPY12,
@@ -1029,7 +1029,7 @@ struct sony_sc {
10291029
struct led_classdev *leds[MAX_LEDS];
10301030
unsigned long quirks;
10311031
struct work_struct state_worker;
1032-
void(*send_output_report)(struct sony_sc*);
1032+
void (*send_output_report)(struct sony_sc *);
10331033
struct power_supply *battery;
10341034
struct power_supply_desc battery_desc;
10351035
int device_id;
@@ -2259,7 +2259,7 @@ static void sony_release_device_id(struct sony_sc *sc)
22592259
}
22602260

22612261
static inline void sony_init_output_report(struct sony_sc *sc,
2262-
void(*send_output_report)(struct sony_sc*))
2262+
void (*send_output_report)(struct sony_sc *))
22632263
{
22642264
sc->send_output_report = send_output_report;
22652265

@@ -2447,7 +2447,7 @@ static int sony_suspend(struct hid_device *hdev, pm_message_t message)
24472447
/*
24482448
* On suspend save the current LED state,
24492449
* stop running force-feedback and blank the LEDS.
2450-
*/
2450+
*/
24512451
if (SONY_LED_SUPPORT || SONY_FF_SUPPORT) {
24522452
struct sony_sc *sc = hid_get_drvdata(hdev);
24532453

0 commit comments

Comments
 (0)