Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5215021ybl; Tue, 27 Aug 2019 00:55:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqy93lfjrv8Ra03hY3A2PTNHqpvFGVuYcmP6By0o/SOmwLKyYd6P1b2ttajNtZbIyHowhEMN X-Received: by 2002:a63:c442:: with SMTP id m2mr20556449pgg.286.1566892559039; Tue, 27 Aug 2019 00:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566892559; cv=none; d=google.com; s=arc-20160816; b=DiO/Q9q+jRbtvHPDFUiUB7zP7DmwMWddYnEXRN0+8rCcbUxA2m6SdomhTn/IJIP/CZ DZduTgvnGqz0tBggMQA93lpFXI3jzMfRCV+dygP7+zx4BR9wOtl+J+nvToKO1bvLrxq+ 3hKANoQPaR5D+piupDHs1rzpZLhoF3B1uN5yLUm4Gmlj37LZgiJ8EJCsryca4WPsPhP7 gJwdtaQOjBsMHM8bHsIV6ZKNRq79fhFJCNp0MIPv6GR1XYim07N1jR8Ol27bcGcnv/2T E5faJdQg14fFfyeafrHVgYuOwqmxOfSFZQ3amv9isEHHOWPLo1PHB5BNZ5YYJGdYe9bD 4ecA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yIM9nUxxcgE8AlJy98oJvII0d14mIB1EYPZ5hi+vo88=; b=QXa2xLHXkTEZIOYomCW1btnqeX/8kMeXVwjzQB1AZ4JMtsR7O+ZGdz3smCjKsTj9PQ qX2q8i/YDiLxtopr4k4QHfHMquEN6xj21aHPgTl1/RavR4M6/muMjsEDJUJHT4OZ77m2 dHOjFxkGlpOFF/QBjmx0aylY5r4WwJxHlqUsfoYhENDHTreqfyWHYzA1170OAJMi646i w3yNWsBUgMpEqaKKeXNZ39G0DJjvExk5sbeErHZ6T3d2iwRuyBzYYPou71SvpYv64Cy7 ePziFXQgQl6TACnjxUV1C4cFS2UG0qhCqctqvpX15EwaiynUxVyy/PR2vS71tbN79jyc eNwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2mKOvoqT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 136si11281936pgg.354.2019.08.27.00.55.43; Tue, 27 Aug 2019 00:55:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2mKOvoqT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729696AbfH0HxJ (ORCPT + 99 others); Tue, 27 Aug 2019 03:53:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:44560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729684AbfH0HxD (ORCPT ); Tue, 27 Aug 2019 03:53:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 986E62173E; Tue, 27 Aug 2019 07:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566892383; bh=FSfcG/9Y4fiGy/iFk9Uk6lrJU6yMcP4v2223qcX1u9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2mKOvoqTnu2btGT+jiCQxmLEyYxlGPaHtAijUjlGc8qOIgPt8bQaA5HJHIlfVzPAP sYdhbrlOtMLh4I1IOGsXUxDSLimFeVL8ErfrObcsr4xK3gVbnoBiuRcuAcKyRN4rGw aV38DTdvO+Z7d2R4giyxUcvvjeEzdpeVjPkuQIjk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaron Armstrong Skomra , Ping Cheng , Jason Gerecke , Jiri Kosina Subject: [PATCH 4.14 36/62] HID: wacom: correct misreported EKR ring values Date: Tue, 27 Aug 2019 09:50:41 +0200 Message-Id: <20190827072702.774481658@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190827072659.803647352@linuxfoundation.org> References: <20190827072659.803647352@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aaron Armstrong Skomra commit fcf887e7caaa813eea821d11bf2b7619a37df37a upstream. The EKR ring claims a range of 0 to 71 but actually reports values 1 to 72. The ring is used in relative mode so this change should not affect users. Signed-off-by: Aaron Armstrong Skomra Fixes: 72b236d60218f ("HID: wacom: Add support for Express Key Remote.") Cc: # v4.3+ Reviewed-by: Ping Cheng Reviewed-by: Jason Gerecke Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- drivers/hid/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -1061,7 +1061,7 @@ static int wacom_remote_irq(struct wacom input_report_key(input, BTN_BASE2, (data[11] & 0x02)); if (data[12] & 0x80) - input_report_abs(input, ABS_WHEEL, (data[12] & 0x7f)); + input_report_abs(input, ABS_WHEEL, (data[12] & 0x7f) - 1); else input_report_abs(input, ABS_WHEEL, 0);