From: Jiri Kosina Date: Fri, 17 Jun 2016 21:15:04 +0000 (+0200) Subject: HID: alps: struct u1_dev *priv is internal to the driver X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=41f61ecc501ca970ae8d9955c57405dc4abfab5a;p=linux-beck.git HID: alps: struct u1_dev *priv is internal to the driver ... and therefore should be marked static. Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c index b79c318987a3..098bce621c6c 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)