summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/of_touchscreen.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-07-06 14:45:25 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-07-11 17:26:13 -0700
commitf61fd21dea1b9b40edfab07bdcd60d6a3bd95ba1 (patch)
tree2768044da89943ea0cb4b9f782899202e427cfc3 /drivers/input/touchscreen/of_touchscreen.c
parentb6d30968d86c45a7bb599eaca13ff048d3fa576c (diff)
downloadblackbird-op-linux-f61fd21dea1b9b40edfab07bdcd60d6a3bd95ba1.tar.gz
blackbird-op-linux-f61fd21dea1b9b40edfab07bdcd60d6a3bd95ba1.zip
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>
Diffstat (limited to 'drivers/input/touchscreen/of_touchscreen.c')
-rw-r--r--drivers/input/touchscreen/of_touchscreen.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/input/touchscreen/of_touchscreen.c b/drivers/input/touchscreen/of_touchscreen.c
index 806cd0ad160f..759cf4b8ba09 100644
--- a/drivers/input/touchscreen/of_touchscreen.c
+++ b/drivers/input/touchscreen/of_touchscreen.c
@@ -39,13 +39,9 @@ static void touchscreen_set_params(struct input_dev *dev,
struct input_absinfo *absinfo;
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,
- "DT specifies parameters but the axis is not set up\n");
+ dev_warn(&dev->dev,
+ "DT specifies parameters but the axis %lu is not set up\n",
+ axis);
return;
}
OpenPOWER on IntegriCloud