staging: unisys: visorinput: remove extraneous mouse logic
authorTim Sell <Timothy.Sell@unisys.com>
Fri, 2 Oct 2015 17:19:24 +0000 (13:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:53:34 +0000 (09:53 +0100)
Removes a cursor positioning hack that no longer seems to be required.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorinput/visorinput.c

index 103f72b763325881ba61d5a56bbad8e0ee55dcb9..a002e072429b5b0d2ced03648733fa035d754538 100644 (file)
@@ -350,18 +350,6 @@ register_client_mouse(void *devdata /* opaque on purpose */)
                return NULL;
        }
 
-       /*
-        * Sending top-left and bottom-right positions is ABSOLUTELY
-        * REQUIRED if we want X to move the mouse to the exact points
-        * we tell it.  I have NO IDEA why.
-        */
-       input_report_abs(visorinput_dev, ABS_X, 0);
-       input_report_abs(visorinput_dev, ABS_Y, 0);
-       input_sync(visorinput_dev);
-       input_report_abs(visorinput_dev, ABS_X, xres - 1);
-       input_report_abs(visorinput_dev, ABS_Y, yres - 1);
-       input_sync(visorinput_dev);
-
        input_set_capability(visorinput_dev, EV_REL, REL_WHEEL);
 
        return visorinput_dev;