aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/mouse/elantech.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
index 6428d6f4d568..b84cd978fce2 100644
--- a/drivers/input/mouse/elantech.c
+++ b/drivers/input/mouse/elantech.c
@@ -700,7 +700,9 @@ static int elantech_debounce_check_v2(struct psmouse *psmouse)
700 * When we encounter packet that matches this exactly, it means the 700 * When we encounter packet that matches this exactly, it means the
701 * hardware is in debounce status. Just ignore the whole packet. 701 * hardware is in debounce status. Just ignore the whole packet.
702 */ 702 */
703 const u8 debounce_packet[] = { 0x84, 0xff, 0xff, 0x02, 0xff, 0xff }; 703 static const u8 debounce_packet[] = {
704 0x84, 0xff, 0xff, 0x02, 0xff, 0xff
705 };
704 unsigned char *packet = psmouse->packet; 706 unsigned char *packet = psmouse->packet;
705 707
706 return !memcmp(packet, debounce_packet, sizeof(debounce_packet)); 708 return !memcmp(packet, debounce_packet, sizeof(debounce_packet));
@@ -741,7 +743,9 @@ static int elantech_packet_check_v2(struct psmouse *psmouse)
741static int elantech_packet_check_v3(struct psmouse *psmouse) 743static int elantech_packet_check_v3(struct psmouse *psmouse)
742{ 744{
743 struct elantech_data *etd = psmouse->private; 745 struct elantech_data *etd = psmouse->private;
744 const u8 debounce_packet[] = { 0xc4, 0xff, 0xff, 0x02, 0xff, 0xff }; 746 static const u8 debounce_packet[] = {
747 0xc4, 0xff, 0xff, 0x02, 0xff, 0xff
748 };
745 unsigned char *packet = psmouse->packet; 749 unsigned char *packet = psmouse->packet;
746 750
747 /* 751 /*