aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-magicmouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-magicmouse.c')
-rw-r--r--drivers/hid/hid-magicmouse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c
index f10d56a15f21..cd706354496a 100644
--- a/drivers/hid/hid-magicmouse.c
+++ b/drivers/hid/hid-magicmouse.c
@@ -160,10 +160,9 @@ static void magicmouse_emit_touch(struct magicmouse_sc *msc, int raw_id, u8 *tda
160 msc->touches[id].size = misc & 63; 160 msc->touches[id].size = misc & 63;
161 161
162 /* If requested, emulate a scroll wheel by detecting small 162 /* If requested, emulate a scroll wheel by detecting small
163 * vertical touch motions along the middle of the mouse. 163 * vertical touch motions.
164 */ 164 */
165 if (emulate_scroll_wheel && 165 if (emulate_scroll_wheel) {
166 middle_button_start < x && x < middle_button_stop) {
167 static const int accel_profile[] = { 166 static const int accel_profile[] = {
168 256, 228, 192, 160, 128, 96, 64, 32, 167 256, 228, 192, 160, 128, 96, 64, 32,
169 }; 168 };