ChangeSet 1.930.159.2, 2003/06/20 14:22:23-07:00, [EMAIL PROTECTED]

[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->features->x_max / 375 * 100;
-       int inchY = aiptek->features->y_max / 375 * 100;
-       int mmX = (int) ((double) aiptek->features->x_max / 14.8);
-       int mmY = (int) ((double) aiptek->features->y_max / 14.8);
-
        out +=
-           sprintf(out, "Aiptek Tablet (%dx%d, %d.%02dx%d.%02d\", %dx%dmm)\n",
-                   aiptek->features->x_max, aiptek->features->y_max,
-                   inchX / 100, inchX % 100, inchY / 100, inchY % 100, mmX,
-                   mmY);
+           sprintf(out, "Aiptek Tablet (%dx%d)\n",
+                   aiptek->features->x_max, aiptek->features->y_max);
 
        out +=
            sprintf(out,



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to