Thread (4 messages) flat view 4 messages, 2 authors, 2016-11-15
STALE3561d

[PATCH] HID: udraw-ps3: accel_limits is local to the driver

From: Jiri Kosina <jikos@kernel.org>
Date: 2016-11-15 13:26:19
Also in: lkml
Subsystem: hid core layer, the rest, udraw tablet · Maintainers: Jiri Kosina, Benjamin Tissoires, Linus Torvalds, Bastien Nocera

From: Jiri Kosina <redacted>

And as such should be marked static to avoid global namespace pollution.

Signed-off-by: Jiri Kosina <redacted>
---

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help