<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">ChangeSet 1.930.159.2, 2003/06/20 14:22:23-07:00, greg@kroah.com

[PATCH] USB: remove stupid conversions and use of floating point from aiptek.c


 drivers/usb/aiptek.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)


diff -Nru a/drivers/usb/aiptek.c b/drivers/usb/aiptek.c
--- a/drivers/usb/aiptek.c	Fri Jun 27 16:27:28 2003
+++ b/drivers/usb/aiptek.c	Fri Jun 27 16:27:28 2003
@@ -969,16 +969,9 @@
 	char *out = page;
 	struct aiptek *aiptek = data;
 
-	int inchX = aiptek-&gt;features-&gt;x_max / 375 * 100;
-	int inchY = aiptek-&gt;features-&gt;y_max / 375 * 100;
-	int mmX = (int) ((double) aiptek-&gt;features-&gt;x_max / 14.8);
-	int mmY = (int) ((double) aiptek-&gt;features-&gt;y_max / 14.8);
-
 	out +=
-	    sprintf(out, "Aiptek Tablet (%dx%d, %d.%02dx%d.%02d\", %dx%dmm)\n",
-		    aiptek-&gt;features-&gt;x_max, aiptek-&gt;features-&gt;y_max,
-		    inchX / 100, inchX % 100, inchY / 100, inchY % 100, mmX,
-		    mmY);
+	    sprintf(out, "Aiptek Tablet (%dx%d)\n",
+		    aiptek-&gt;features-&gt;x_max, aiptek-&gt;features-&gt;y_max);
 
 	out +=
 	    sprintf(out,
</pre></body></html>