Input: atmel_mxt_ts - remove warning on zero T44 count
authorNick Dyer <nick.dyer@itdev.co.uk>
Tue, 4 Aug 2015 23:58:05 +0000 (16:58 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 5 Aug 2015 00:03:55 +0000 (17:03 -0700)
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c

index 0ea9903..c562205 100644 (file)
@@ -938,16 +938,15 @@ static irqreturn_t mxt_process_messages_t44(struct mxt_data *data)
 
        count = data->msg_buf[0];
 
-       if (count == 0) {
-               /*
-                * This condition is caused by the CHG line being configured
-                * in Mode 0. It results in unnecessary I2C operations but it
-                * is benign.
-                */
-               dev_dbg(dev, "Interrupt triggered but zero messages\n");
+       /*
+        * This condition may be caused by the CHG line being configured in
+        * Mode 0. It results in unnecessary I2C operations but it is benign.
+        */
+       if (count == 0)
                return IRQ_NONE;
-       } else if (count > data->max_reportid) {
-               dev_err(dev, "T44 count %d exceeded max report id\n", count);
+
+       if (count > data->max_reportid) {
+               dev_warn(dev, "T44 count %d exceeded max report id\n", count);
                count = data->max_reportid;
        }