Merge branch 'next' into for-linus
[~shefty/rdma-dev.git] / drivers / input / tablet / wacom_sys.c
index 39205eddf71301466e993419180d159c88af7307..ca28066dc81e335bb85483617a69f46056dbd63e 100644 (file)
@@ -184,9 +184,9 @@ static int wacom_parse_logical_collection(unsigned char *report,
                 * data before its overwritten.
                 */
                features->x_phy =
-                       (features->x_max * features->x_resolution) / 100;
+                       (features->x_max * 100) / features->x_resolution;
                features->y_phy =
-                       (features->y_max * features->y_resolution) / 100;
+                       (features->y_max * 100) / features->y_resolution;
 
                features->x_max = features->y_max =
                        get_unaligned_le16(&report[10]);