[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1611151425170.29400@cbobk.fhfr.pm>
Date: Tue, 15 Nov 2016 14:26:04 +0100 (CET)
From: Jiri Kosina <jikos@...nel.org>
To: Bastien Nocera <hadess@...ess.net>
cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] HID: udraw-ps3: accel_limits is local to the driver
From: Jiri Kosina <jkosina@...e.cz>
And as such should be marked static to avoid global namespace pollution.
Signed-off-by: Jiri Kosina <jkosina@...e.cz>
---
I've just applied this on top of hid.git#for-4.10/udraw-ps3
drivers/hid/hid-udraw-ps3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-udraw-ps3.c b/drivers/hid/hid-udraw-ps3.c
index 1f68b0b..88ea390 100644
--- a/drivers/hid/hid-udraw-ps3.c
+++ b/drivers/hid/hid-udraw-ps3.c
@@ -54,7 +54,7 @@ enum {
* Accelerometer min/max values
* in order, X, Y and Z
*/
-struct {
+static struct {
int min;
int max;
} accel_limits[] = {
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists