Skip to content

Commit

Permalink
Input: synaptics-rmi4 - fix debug for sensor clip
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Dyer authored and Dmitry Torokhov committed Dec 8, 2016
1 parent ae9979c commit 5d244f7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/input/rmi4/rmi_f12.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ static int rmi_f12_read_sensor_tuning(struct f12_data *f12)
u8 buf[15];
int pitch_x = 0;
int pitch_y = 0;
int clip_x_low = 0;
int clip_x_high = 0;
int clip_y_low = 0;
int clip_y_high = 0;
int rx_receivers = 0;
int tx_receivers = 0;
int sensor_flags = 0;
Expand Down Expand Up @@ -127,7 +123,9 @@ static int rmi_f12_read_sensor_tuning(struct f12_data *f12)
}

rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: x low: %d x high: %d y low: %d y high: %d\n",
__func__, clip_x_low, clip_x_high, clip_y_low, clip_y_high);
__func__,
sensor->axis_align.clip_x_low, sensor->axis_align.clip_x_high,
sensor->axis_align.clip_y_low, sensor->axis_align.clip_y_high);

if (rmi_register_desc_has_subpacket(item, 3)) {
rx_receivers = buf[offset];
Expand Down

0 comments on commit 5d244f7

Please sign in to comment.