diff options
author | Sami Liedes <sliedes@nvidia.com> | 2013-01-24 17:06:15 +0200 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:51:12 -0700 |
commit | b428363f775f914bc7197192674f91faf578bbe0 (patch) | |
tree | f8a5d71bbe894edb9df36b16e720c15a99122366 /drivers/hid | |
parent | 5bc307f785af2576aa269cb1c36d65a5de95ddfe (diff) |
HID: hid-sony: Silence a GCC mixed declarations and code warning
Swap the order of the declaration of led_data and the call to
hid_info() in sixaxis_set_led_bt() to silence a GCC warning.
Change-Id: I62964e6eb530b86d7cae1b80958285803115a460
Signed-off-by: Sami Liedes <sliedes@nvidia.com>
Reviewed-on: http://git-master/r/193824
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-sony.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 01dc3a2531d3..489c44864d32 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -194,7 +194,6 @@ static int sixaxis_set_operational_bt(struct hid_device *hdev) static void sixaxis_set_led_bt(struct hid_device *hdev) { - hid_info(hdev, "set LED BT\n"); /* set first LED on BT connection */ unsigned char led_data[] = { 0x01, @@ -208,6 +207,7 @@ static void sixaxis_set_led_bt(struct hid_device *hdev) 0xff, 0x27, 0x10, 0x00, 0x32, /* LED 1 */ 0x00, 0x00, 0x00, 0x00, 0x00 }; + hid_info(hdev, "set LED BT\n"); hdev->hid_output_raw_report(hdev, led_data, sizeof(led_data), HID_OUTPUT_REPORT); } |