|
@@ -700,7 +700,9 @@ static int elantech_debounce_check_v2(struct psmouse *psmouse)
|
|
|
* When we encounter packet that matches this exactly, it means the
|
|
|
* hardware is in debounce status. Just ignore the whole packet.
|
|
|
*/
|
|
|
- const u8 debounce_packet[] = { 0x84, 0xff, 0xff, 0x02, 0xff, 0xff };
|
|
|
+ static const u8 debounce_packet[] = {
|
|
|
+ 0x84, 0xff, 0xff, 0x02, 0xff, 0xff
|
|
|
+ };
|
|
|
unsigned char *packet = psmouse->packet;
|
|
|
|
|
|
return !memcmp(packet, debounce_packet, sizeof(debounce_packet));
|
|
@@ -741,7 +743,9 @@ static int elantech_packet_check_v2(struct psmouse *psmouse)
|
|
|
static int elantech_packet_check_v3(struct psmouse *psmouse)
|
|
|
{
|
|
|
struct elantech_data *etd = psmouse->private;
|
|
|
- const u8 debounce_packet[] = { 0xc4, 0xff, 0xff, 0x02, 0xff, 0xff };
|
|
|
+ static const u8 debounce_packet[] = {
|
|
|
+ 0xc4, 0xff, 0xff, 0x02, 0xff, 0xff
|
|
|
+ };
|
|
|
unsigned char *packet = psmouse->packet;
|
|
|
|
|
|
/*
|