msm: keypad: Initialize keypad detected to -1

Fix detection of row0/col0 gpio keypad.

CRs-Fixed: 281180
Change-Id: I2167947a4676557b6e2836c883bffbe486398d27
diff --git a/dev/keys/gpio_keypad.c b/dev/keys/gpio_keypad.c
index 2ec7c5d..03406ee 100644
--- a/dev/keys/gpio_keypad.c
+++ b/dev/keys/gpio_keypad.c
@@ -547,7 +547,7 @@
     unsigned char column_new_keys = 0x00;
     unsigned char column_old_keys = 0x00;
     int shift = 0;
-    static int key_detected = 0;
+    static int key_detected = -1;
 
     if ((*rd_function)((qwerty_keypad->keypad_info)->rec_keys, num_of_ssbi_reads,
                                                  SSBI_REG_KYPD_REC_DATA_ADDR))
@@ -604,7 +604,7 @@
     unsigned int last_state=0;
     unsigned int new_state=0;
     unsigned int bits_changed;
-    static unsigned int key_detected=0;
+    static int key_detected=-1;
 
     /* Row GPIOs 8,9,10 are used for sensing here */
     for(gpio=8;gpio<=10;gpio++)
@@ -619,7 +619,7 @@
 
     if(bits_changed)
     {
-        unsigned int shift;
+        int shift;
         for(int rows=0;rows<(qwerty_keypad->keypad_info)->rows;rows++)
         {
             if((bits_changed & (1<<rows)) == 0)