]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/input/mouse/appletouch.c
Input: appletouch - remove extra KERN_DEBUG use from dprintk
[net-next-2.6.git] / drivers / input / mouse / appletouch.c
index 05edd75abca0e9d44300c9d59cb3e2e73099591e..b77f9991278e791557e47638ce078b157cf52993 100644 (file)
@@ -205,8 +205,8 @@ struct atp {
        bool                    overflow_warned;
        int                     x_old;          /* last reported x/y, */
        int                     y_old;          /* used for smoothing */
-       u8                      xy_cur[ATP_XSENSORS + ATP_YSENSORS];
-       u8                      xy_old[ATP_XSENSORS + ATP_YSENSORS];
+       signed char             xy_cur[ATP_XSENSORS + ATP_YSENSORS];
+       signed char             xy_old[ATP_XSENSORS + ATP_YSENSORS];
        int                     xy_acc[ATP_XSENSORS + ATP_YSENSORS];
        int                     idlecount;      /* number of empty packets */
        struct work_struct      work;
@@ -531,7 +531,7 @@ static void atp_complete_geyser_1_2(struct urb *urb)
 
        for (i = 0; i < ATP_XSENSORS + ATP_YSENSORS; i++) {
                /* accumulate the change */
-               int change = dev->xy_old[i] - dev->xy_cur[i];
+               signed char change = dev->xy_old[i] - dev->xy_cur[i];
                dev->xy_acc[i] -= change;
 
                /* prevent down drifting */
@@ -630,7 +630,7 @@ static void atp_complete_geyser_3_4(struct urb *urb)
        /* Just update the base values (i.e. touchpad in untouched state) */
        if (dev->data[dev->info->datalen - 1] & ATP_STATUS_BASE_UPDATE) {
 
-               dprintk(KERN_DEBUG "appletouch: updated base values\n");
+               dprintk("appletouch: updated base values\n");
 
                memcpy(dev->xy_old, dev->xy_cur, sizeof(dev->xy_old));
                goto exit;