aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2012-06-12 03:28:37 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-06-12 03:40:24 -0400
commit32edbf562cabc0fb927692c86274c3cd2ccde0d0 (patch)
tree5f0c72cbcfcbf771a950eb0950d2ab335cfa9078 /drivers/input/tablet
parenta19fc98685ad0b5bccc38ca17acb50a92915ec51 (diff)
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>
Diffstat (limited to 'drivers/input/tablet')
-rw-r--r--drivers/input/tablet/wacom_sys.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index a5d1c60e77ee..9e8fdcf005a3 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -1171,10 +1171,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
1171 features->device_type = BTN_TOOL_FINGER; 1171 features->device_type = BTN_TOOL_FINGER;
1172 features->pktlen = WACOM_PKGLEN_BBTOUCH3; 1172 features->pktlen = WACOM_PKGLEN_BBTOUCH3;
1173 1173
1174 features->x_phy = 1174 wacom_set_phy_from_res(features);
1175 (features->x_max * 100) / features->x_resolution;
1176 features->y_phy =
1177 (features->y_max * 100) / features->y_resolution;
1178 1175
1179 features->x_max = 4096; 1176 features->x_max = 4096;
1180 features->y_max = 4096; 1177 features->y_max = 4096;