Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: atmel_mxt_ts - remove warning on zero T44 count

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Nick Dyer and committed by
Dmitry Torokhov
507584e2 eafc0c87

+8 -9
+8 -9
drivers/input/touchscreen/atmel_mxt_ts.c
··· 938 938 939 939 count = data->msg_buf[0]; 940 940 941 - if (count == 0) { 942 - /* 943 - * This condition is caused by the CHG line being configured 944 - * in Mode 0. It results in unnecessary I2C operations but it 945 - * is benign. 946 - */ 947 - dev_dbg(dev, "Interrupt triggered but zero messages\n"); 941 + /* 942 + * This condition may be caused by the CHG line being configured in 943 + * Mode 0. It results in unnecessary I2C operations but it is benign. 944 + */ 945 + if (count == 0) 948 946 return IRQ_NONE; 949 - } else if (count > data->max_reportid) { 950 - dev_err(dev, "T44 count %d exceeded max report id\n", count); 947 + 948 + if (count > data->max_reportid) { 949 + dev_warn(dev, "T44 count %d exceeded max report id\n", count); 951 950 count = data->max_reportid; 952 951 } 953 952