Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nick Dyer and committed by
Dmitry Torokhov
5d244f7e ae9979c3

+3 -5
+3 -5
drivers/input/rmi4/rmi_f12.c
··· 71 71 u8 buf[15]; 72 72 int pitch_x = 0; 73 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 74 int rx_receivers = 0; 79 75 int tx_receivers = 0; 80 76 int sensor_flags = 0; ··· 123 127 } 124 128 125 129 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: x low: %d x high: %d y low: %d y high: %d\n", 126 - __func__, clip_x_low, clip_x_high, clip_y_low, clip_y_high); 130 + __func__, 131 + sensor->axis_align.clip_x_low, sensor->axis_align.clip_x_high, 132 + sensor->axis_align.clip_y_low, sensor->axis_align.clip_y_high); 127 133 128 134 if (rmi_register_desc_has_subpacket(item, 3)) { 129 135 rx_receivers = buf[offset];