aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2010-11-12 17:03:34 +0000
committerJohn Rigby <john.rigby@linaro.org>2011-03-16 15:49:24 -0600
commit53e6fa470c49f5f837bc3f140dd70d9142c90d3f (patch)
tree9cf4538b159cc5caff974fdd106cdbcec45cc962 /drivers
parentf0a099472e945e0329c8dc10ffa0dfe1ecddee05 (diff)
Revert "UBUNTU: [Upstream] HID: magicmouse: scroll on entire surface, not just middle of mouse"
This reverts commit 0100ce314c261ccc4fbecf30a3d01f71f509af5b. Signed-off-by: Andy Whitcroft <apw@canonical.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hid/hid-magicmouse.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c
index 865e78888549..698e6459fd0b 100644
--- a/drivers/hid/hid-magicmouse.c
+++ b/drivers/hid/hid-magicmouse.c
@@ -207,9 +207,6 @@ static void magicmouse_emit_touch(struct magicmouse_sc *msc, int raw_id, u8 *tda
* vertical touch motions.
*/
if (emulate_scroll_wheel) {
- static const int accel_profile[] = {
- 256, 228, 192, 160, 128, 96, 64, 32,
- };
unsigned long now = jiffies;
int step_x = msc->touches[id].scroll_x - x;
int step_y = msc->touches[id].scroll_y - y;