| From 163095aebe1a260dfe3cac3085c5c6eb7ed0253d Mon Sep 17 00:00:00 2001 |
| From: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> |
| Date: Sun, 5 Jul 2020 19:34:57 +0200 |
| Subject: [PATCH] HID: logitech-hidpp: avoid repeated "multiplier = " log |
| messages |
| |
| commit e13762abf38ead29071407f32b9dcec38f21dc34 upstream. |
| |
| These messages appear each time the mouse wakes from sleep, in my case |
| (Logitech M705), every minute or so. |
| Let's downgrade them to the "debug" level so they don't fill the kernel log |
| by default. |
| |
| While we are at it, let's make clear that this is a wheel multiplier (and |
| not, for example, XY movement multiplier). |
| |
| Fixes: 4435ff2f09a2 ("HID: logitech: Enable high-resolution scrolling on Logitech mice") |
| Cc: stable@vger.kernel.org |
| Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> |
| Reviewed-by: Harry Cutts <hcutts@chromium.org> |
| Signed-off-by: Jiri Kosina <jkosina@suse.cz> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c |
| index f97913974983..e994403f7650 100644 |
| --- a/drivers/hid/hid-logitech-hidpp.c |
| +++ b/drivers/hid/hid-logitech-hidpp.c |
| @@ -2964,7 +2964,7 @@ static int hi_res_scroll_enable(struct hidpp_device *hidpp) |
| multiplier = 1; |
| |
| hidpp->vertical_wheel_counter.wheel_multiplier = multiplier; |
| - hid_info(hidpp->hid_dev, "multiplier = %d\n", multiplier); |
| + hid_dbg(hidpp->hid_dev, "wheel multiplier = %d\n", multiplier); |
| return 0; |
| } |
| |
| -- |
| 2.27.0 |
| |