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

Input: wacom - remove code duplication

Replaces code to calculate Intuos5 physical dimensions with a call
to an existing function that performs the same task.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Jason Gerecke and committed by
Dmitry Torokhov
32edbf56 a19fc986

+1 -4
+1 -4
drivers/input/tablet/wacom_sys.c
··· 1171 1171 features->device_type = BTN_TOOL_FINGER; 1172 1172 features->pktlen = WACOM_PKGLEN_BBTOUCH3; 1173 1173 1174 - features->x_phy = 1175 - (features->x_max * 100) / features->x_resolution; 1176 - features->y_phy = 1177 - (features->y_max * 100) / features->y_resolution; 1174 + wacom_set_phy_from_res(features); 1178 1175 1179 1176 features->x_max = 4096; 1180 1177 features->y_max = 4096;