Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1677361imm; Mon, 3 Sep 2018 06:44:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaRQo8PUk93jVrJo5VPmQM/r+lskv1QqBdhcxhXejH12/KHKPnbxJXEAerMhDeIq0gPRDpr X-Received: by 2002:a62:1fdd:: with SMTP id l90-v6mr28983500pfj.121.1535982275349; Mon, 03 Sep 2018 06:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535982275; cv=none; d=google.com; s=arc-20160816; b=tng3rMa9ZL+6GC0HCQkCqYqpO0yEl+AC9H8QXC/qGBW0tyqoUsuZT/0MD+DFj3AUzz dQioJQf6Q5uZX930d/gnXazrBlE07NGBYRvrUj2JxxyzPOt4s+XzZQ0G6npYBAiMN4eH rlvdMZx10L/DOW0cDUziid7OYs84D9XLA4SGeO4NIIf3XAkOR32H2dHoTAfTZ7wDmYZS iDnmb2hatznRJ91w7OaNjH5eOwIvg0A8brHn0W8GT5EiFD6yhe9iOvYJjJ5NQGtx1cwq AL3Zs8cD17xo7rgtOOGDxSFLE/PkZEMBbA0mQ3KFqaeSpHcAcCMDOYNZMtPzbw79P2UK xr7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=rKvNAFE4PzM8rjIF9S4Yuzy3heTQi5IbhuzxckvNghA=; b=qHgRaRnM0OfxOCV5bd2AjhF0bNdE+avEXKkTc5niQydvnJ1FyIh1qEhcWp5eYd00/m nygtwiG7rH3mrgZgmVhy15OftFAYFoKMd4dE54Imiz4SCVv5XOvFANIQ6eCEFhxYPM1n PjNXBMWPgx3QLv5wSGdedSe3XT0wEriBidoK7RsFe7DhubDpK56rjLC/yZVQW56qPkaD 1uChkD6zNZmJEGO/g8lx59xiAdHHSv21BDvAlTvWYTnRcpXhwB9hyX3ZVzaieuGBIe0t wqw3OskQfHfVc48ls9ZeLXepTkgmCxLFg78H25tkICsyWUnDArELkM8Epr/X7oxiukxP wrKA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16-v6si17370015pgg.619.2018.09.03.06.44.20; Mon, 03 Sep 2018 06:44:35 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727305AbeICSDb (ORCPT + 99 others); Mon, 3 Sep 2018 14:03:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:45342 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725982AbeICSDa (ORCPT ); Mon, 3 Sep 2018 14:03:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CE834AE46; Mon, 3 Sep 2018 13:43:14 +0000 (UTC) Date: Mon, 3 Sep 2018 15:43:13 +0200 (CEST) From: Jiri Kosina To: Harry Cutts , Dmitry Torokhov cc: linux-input , LKML , Jiri Kosina , Benjamin Tissoires , linux-doc@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH v2 1/5] Add the `REL_WHEEL_HI_RES` event code In-Reply-To: <20180830215622.47550-2-hcutts@chromium.org> Message-ID: References: <20180830215622.47550-1-hcutts@chromium.org> <20180830215622.47550-2-hcutts@chromium.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Aug 2018, Harry Cutts wrote: > This event code represents scroll reports from high-resolution wheels, > and will be used by future patches in this series. See the linux-input > "Reporting high-resolution scroll events" thread [0] for more details. > > [0]: https://www.spinics.net/lists/linux-input/msg57380.html > > Signed-off-by: Harry Cutts > --- > > Changes in v2: None > > Documentation/input/event-codes.rst | 11 ++++++++++- > include/uapi/linux/input-event-codes.h | 1 + > 2 files changed, 11 insertions(+), 1 deletion(-) > > diff --git a/Documentation/input/event-codes.rst b/Documentation/input/event-codes.rst > index a8c0873beb95..cef220c176a4 100644 > --- a/Documentation/input/event-codes.rst > +++ b/Documentation/input/event-codes.rst > @@ -190,7 +190,16 @@ A few EV_REL codes have special meanings: > * REL_WHEEL, REL_HWHEEL: > > - These codes are used for vertical and horizontal scroll wheels, > - respectively. > + respectively. The value is the number of "notches" moved on the wheel, the > + physical size of which varies by device. For high-resolution wheels (which > + report multiple events for each notch of movement, or do not have notches) > + this may be an approximation based on the high-resolution scroll events. > + > +* REL_WHEEL_HI_RES: > + > + - If a vertical scroll wheel supports high-resolution scrolling, this code > + will be emitted in addition to REL_WHEEL. The value is the (approximate) > + distance travelled by the user's finger, in microns. > > EV_ABS > ------ > diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h > index 53fbae27b280..dad8d3890a3a 100644 > --- a/include/uapi/linux/input-event-codes.h > +++ b/include/uapi/linux/input-event-codes.h > @@ -708,6 +708,7 @@ > #define REL_DIAL 0x07 > #define REL_WHEEL 0x08 > #define REL_MISC 0x09 > +#define REL_WHEEL_HI_RES 0x0a > #define REL_MAX 0x0f > #define REL_CNT (REL_MAX+1) Dmitry, is this OK with you? Thanks, -- Jiri Kosina SUSE Labs