diff options
author | Nick Dyer <nick@shmanahar.org> | 2016-12-07 20:20:06 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-12-07 22:20:42 -0500 |
commit | 5d244f7effafeaa5272ca5daa37d8b7bb17967a8 (patch) | |
tree | d3366ca7deeba22730952082bb2090133648d2f1 | |
parent | ae9979c31007d5366b73640ee7dcbb271357053e (diff) |
Input: synaptics-rmi4 - fix debug for sensor clip
The debug would only ever output zero for the clip information.
Signed-off-by: Nick Dyer <nick@shmanahar.org>
Reviewed-by: Andrew Duggan <aduggan@synaptics.com>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | drivers/input/rmi4/rmi_f12.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/rmi4/rmi_f12.c b/drivers/input/rmi4/rmi_f12.c index 8c5360c25266..07aff4356fe0 100644 --- a/drivers/input/rmi4/rmi_f12.c +++ b/drivers/input/rmi4/rmi_f12.c | |||
@@ -71,10 +71,6 @@ static int rmi_f12_read_sensor_tuning(struct f12_data *f12) | |||
71 | u8 buf[15]; | 71 | u8 buf[15]; |
72 | int pitch_x = 0; | 72 | int pitch_x = 0; |
73 | int pitch_y = 0; | 73 | int pitch_y = 0; |
74 | int clip_x_low = 0; | ||
75 | int clip_x_high = 0; | ||
76 | int clip_y_low = 0; | ||
77 | int clip_y_high = 0; | ||
78 | int rx_receivers = 0; | 74 | int rx_receivers = 0; |
79 | int tx_receivers = 0; | 75 | int tx_receivers = 0; |
80 | int sensor_flags = 0; | 76 | int sensor_flags = 0; |
@@ -127,7 +123,9 @@ static int rmi_f12_read_sensor_tuning(struct f12_data *f12) | |||
127 | } | 123 | } |
128 | 124 | ||
129 | rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: x low: %d x high: %d y low: %d y high: %d\n", | 125 | rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: x low: %d x high: %d y low: %d y high: %d\n", |
130 | __func__, clip_x_low, clip_x_high, clip_y_low, clip_y_high); | 126 | __func__, |
127 | sensor->axis_align.clip_x_low, sensor->axis_align.clip_x_high, | ||
128 | sensor->axis_align.clip_y_low, sensor->axis_align.clip_y_high); | ||
131 | 129 | ||
132 | if (rmi_register_desc_has_subpacket(item, 3)) { | 130 | if (rmi_register_desc_has_subpacket(item, 3)) { |
133 | rx_receivers = buf[offset]; | 131 | rx_receivers = buf[offset]; |