HID: steelseries: arctis_1_battery_request[] should be static
authorJiri Kosina <jkosina@suse.cz>
Mon, 14 Aug 2023 19:19:28 +0000 (21:19 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Aug 2023 19:19:28 +0000 (21:19 +0200)
arctis_1_battery_request[] is not used outside of this module, and as
such should be static.

Fixes: a0c76896c3fbdc2 ("HID: steelseries: Add support for Arctis 1 XBox")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-steelseries.c

index 4953776..43d2cf7 100644 (file)
@@ -375,7 +375,7 @@ static void steelseries_srws1_remove(struct hid_device *hdev)
 #define STEELSERIES_HEADSET_BATTERY_TIMEOUT_MS 3000
 
 #define ARCTIS_1_BATTERY_RESPONSE_LEN          8
-const char arctis_1_battery_request[] = { 0x06, 0x12 };
+static const char arctis_1_battery_request[] = { 0x06, 0x12 };
 
 static int steelseries_headset_arctis_1_fetch_battery(struct hid_device *hdev)
 {