summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2016-06-17 23:15:04 +0200
committerJiri Kosina <jkosina@suse.cz>2016-06-17 23:15:04 +0200
commit41f61ecc501ca970ae8d9955c57405dc4abfab5a (patch)
treeaab7c41d3df205db1170516362e7d9cec68ff3b9 /drivers/hid
parent2562756dde550901c224e3805102bdfc17e7d13a (diff)
downloadop-kernel-dev-41f61ecc501ca970ae8d9955c57405dc4abfab5a.zip
op-kernel-dev-41f61ecc501ca970ae8d9955c57405dc4abfab5a.tar.gz
HID: alps: struct u1_dev *priv is internal to the driver
... and therefore should be marked static. Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-alps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c
index b79c318..098bce6 100644
--- a/drivers/hid/hid-alps.c
+++ b/drivers/hid/hid-alps.c
@@ -98,7 +98,7 @@ struct u1_dev {
u32 sp_btn_cnt;
};
-struct u1_dev *priv;
+static struct u1_dev *priv;
static int u1_read_write_register(struct hid_device *hdev, u32 address,
u8 *read_val, u8 write_val, bool read_flag)
OpenPOWER on IntegriCloud