Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3182285imm; Tue, 4 Sep 2018 17:26:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbtZdUyN41Aqibmk9U/MoB7cyHgKpOqNHZeivbYVprhxrwUxtPRLqZke5kDBtnUC9HqXeIo X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr37929040pfd.181.1536107194581; Tue, 04 Sep 2018 17:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536107194; cv=none; d=google.com; s=arc-20160816; b=P00GJrVegKoPI5Cg1R7aFPiM0aBLYqRFV9qijGTbJDOAPnNqY+4nTCMXAfhxV8vwcJ fk/WMclFbPpsqyDTAOQwMM+XO7vGHGFOI3Z5RO5mViJLODxWJvXf2vDJjmOpteHxy18c ++QUe+uaoUh2uZovLRE1EpMK6x8lmLjZWySi2wCpfBSag0/AOtytTyhULB3y60TM/K1u 5o/LUguoK1BptcQNYgQk5RoLvHK+K15uYAPHDCajvhJgEsqqmSymcerckSY05joprX3U jtSLc03Ady0rj836CScP6YHO8kFri4Cpiwe4RiTtcf7P7xQwD0ij3MVv4vKvVHlgTScK mhVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RmFKsKzNkj0/CRR7kqm7sdo22piWs4gj1gkay/MiDzo=; b=niQVl51DIHvH3LhLSI+4ob9W6ib+G+fpAryLXv5/ga85e2j29i6CLxg8mwNNSu6RU9 ktiKr2fWGTA31ont7doxb6cteRx1WGLXs2xL/AFxQWBtdg3wzyUffsZT1qAmrx1twMUJ qnRvGxrcvnPiwcJoqUSKPWj2S6LZk1aIoI0jXdvORBVDybGZz1c4IF+pOc4v/6zrPKo4 /3czpS6loL69IUb39JxI5qDoa8hl6A5jXLV20VO5fc7/y+XfjKhUCwPnQsw9CwsbxhHJ /H2Tu5CX3uQ7R6ZkrZ7JfD+2jzeA3uWdAd8WT46wJ0d7vQhjlW+HVyeC9Ms/Kcfk0Oz4 18YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iNEUAD2i; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18-v6si266296pfn.317.2018.09.04.17.26.18; Tue, 04 Sep 2018 17:26:34 -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=@gmail.com header.s=20161025 header.b=iNEUAD2i; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726266AbeIEEwo (ORCPT + 99 others); Wed, 5 Sep 2018 00:52:44 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35683 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbeIEEwo (ORCPT ); Wed, 5 Sep 2018 00:52:44 -0400 Received: by mail-pg1-f194.google.com with SMTP id 7-v6so2483389pgf.2; Tue, 04 Sep 2018 17:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RmFKsKzNkj0/CRR7kqm7sdo22piWs4gj1gkay/MiDzo=; b=iNEUAD2ipitdI5oLR/l72TqLgMlHcFbHvBStWRSBmmluiNWzE/SQckzIAqnXm2JJ3i l8UzkLr0QJNlTfEZhiz9H4nnHOsrLw+ZQ8eajdj2gijczy0mTgrOHVah2tBnRciCRTYe 8WOBkPmx6pH7Mvz2dHrPfB+q4hlY14lglvL8Lp7aUuyoKXMApp1TwGTIMYb3MCmaxvp6 yMTPHWs1VtGvrBsxEELAju942mF6OVEL7JBYfH5tAOQdCxtWrSyMRwloiz+ZEogLdtkS r/jIxhiP/tH+ufRbN2c27id8cD4WVQiwGOJrW26uvTsBt0zrFl015Qy3YxgbO1mGOC6u xMKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RmFKsKzNkj0/CRR7kqm7sdo22piWs4gj1gkay/MiDzo=; b=Msdw1JwC67QTtc8wgmvffHBcPshCtzxojSUpnvvQqHVRdsdcgYOwJHcTvVKXY28/04 rS6GKidmt3+G7dmfATS9vFLBnrxgscPKXyqIKIrtYhx3AQ9oqRd7rXQrOmZ9hijN8DOJ 0jKrLL0DVp04hkfKIflhvLXLOhi7N77m6ADSrbR7bFGbFSOynHL4vXoZjzBLc2Xvlb2M PnObNyqV2yrGpVLCPazZPNfVjA7fUk0p4S05E+eB5pwAh+oxFN4m+7gUU2KY01ibtFC4 fvyoaEAVkAfgthvV3NvY/Fl7RhnFeAQEYMKciXkxLYUTVTXFNJ8MCg1NP0lMpQ8I98Ow rb6Q== X-Gm-Message-State: APzg51CtEzW+LukZ+C99lY6EdgjvKMg/rrVSfB6gHR+BEALFn2L4hZOY Akap+8WVswfsLhl5aq2h4eU= X-Received: by 2002:a63:e841:: with SMTP id a1-v6mr18907154pgk.126.1536107111676; Tue, 04 Sep 2018 17:25:11 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id c8-v6sm231109pfb.147.2018.09.04.17.25.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Sep 2018 17:25:10 -0700 (PDT) Date: Tue, 4 Sep 2018 17:25:08 -0700 From: Dmitry Torokhov To: Jiri Kosina Cc: Harry Cutts , 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 Message-ID: <20180905002508.GA72133@dtor-ws> References: <20180830215622.47550-1-hcutts@chromium.org> <20180830215622.47550-2-hcutts@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 03, 2018 at 03:43:13PM +0200, Jiri Kosina wrote: > 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? Yep, please feel free to merge through your tree. Acked-by: Dmitry Torokhov Thanks. -- Dmitry