Input: of_touchscreen - always issue warning if axis is not set up

Do issue warning about axis that is present in device tree but not specified
by the driver even in case of multi-touch axis as callers now tell us if they
expect multi-touch data or not.

Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Dmitry Torokhov 2015-07-06 14:45:25 -07:00
parent b6d30968d8
commit f61fd21dea
1 changed files with 3 additions and 7 deletions

View File

@ -39,13 +39,9 @@ static void touchscreen_set_params(struct input_dev *dev,
struct input_absinfo *absinfo; struct input_absinfo *absinfo;
if (!test_bit(axis, dev->absbit)) { if (!test_bit(axis, dev->absbit)) {
/*
* Emit a warning only if the axis is not a multitouch
* axis, which might not be set by the driver.
*/
if (!input_is_mt_axis(axis))
dev_warn(&dev->dev, dev_warn(&dev->dev,
"DT specifies parameters but the axis is not set up\n"); "DT specifies parameters but the axis %lu is not set up\n",
axis);
return; return;
} }