input: synaptics_dsx: correct the debug message error
Parse the panel coordinates before using it for the debug message. Change-Id: I6e893b91e9f11cf7d80602058358d8256a96726d Signed-off-by: Abinaya P <abinayap@codeaurora.org>
This commit is contained in:
parent
358da51dda
commit
d23166718c
1 changed files with 10 additions and 1 deletions
|
@ -2733,7 +2733,9 @@ static int synaptics_rmi4_parse_dt_children(struct device *dev,
|
|||
*/
|
||||
continue;
|
||||
} else if (of_property_read_bool(child,
|
||||
"synaptics,bypass-sensor-coords-check")) {
|
||||
"synaptics,bypass-sensor-coords-check") &&
|
||||
of_find_property(child,
|
||||
"synaptics,panel-coords", NULL)) {
|
||||
/*
|
||||
* Some unprogrammed panels from touch vendor
|
||||
* and wrongly programmed panels from factory
|
||||
|
@ -2744,6 +2746,9 @@ static int synaptics_rmi4_parse_dt_children(struct device *dev,
|
|||
* of coordinate range read from sensor and read
|
||||
* from DT and continue normal operation.
|
||||
*/
|
||||
synaptics_dsx_get_dt_coords(dev,
|
||||
"synaptics,panel-coords",
|
||||
rmi4_pdata, child);
|
||||
dev_info(dev,
|
||||
"%s Synaptics package id matches %d %d,"
|
||||
"but bypassing the comparison of sensor"
|
||||
|
@ -2781,6 +2786,10 @@ static int synaptics_rmi4_parse_dt_children(struct device *dev,
|
|||
(rmi4_pdata->panel_maxy !=
|
||||
rmi4_data->sensor_max_y))
|
||||
continue;
|
||||
} else {
|
||||
dev_info(dev, "Smax_x Smax_y = %d:%d\n",
|
||||
rmi4_data->sensor_max_x,
|
||||
rmi4_data->sensor_max_y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue