From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9FA9ECAAD5 for ; Mon, 29 Aug 2022 19:08:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbiH2TIE (ORCPT ); Mon, 29 Aug 2022 15:08:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiH2TIB (ORCPT ); Mon, 29 Aug 2022 15:08:01 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A227A77A for ; Mon, 29 Aug 2022 12:08:00 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id 145so8759519pfw.4 for ; Mon, 29 Aug 2022 12:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yocom-org.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc; bh=i5bKUTrb+rmLcQzkpU6se5oAMu2l3FKdPS9MD2hRt6U=; b=RDDWcuxD4oVbcRzclcJ3cIjOiFkzBfoPFqyO6YmocITJZOvLBBXwnecQ2zt5T9KBvK u12Q/lMA/BI6O6z/05quk4e3nBwfsbDStLt+SQT00tLIhzK2jLQqjMlY2cO04MMMF+8n c35Eu4b2p1XAMo9iLwWVR02ug67GlkTzHQntJVczws3EpasGJ3qxVHWaps0fvRT1r+mq K472D+bcAkNsbkmSWFqMbc+GttrC5qc8Fd4EnVSfjspVVeX+vz8RITPy3er+uhsiY5k5 oRFNI/jIkofCq9cTg281IXqLkcW4de67fNEk75F1ylPRoMS1xBkpD4+a2rBIkEmvxeWp TTWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc; bh=i5bKUTrb+rmLcQzkpU6se5oAMu2l3FKdPS9MD2hRt6U=; b=SPaxfV3beLqSQY8rIBGKg5lGZVnCPrxe8jskzLTk+kkjlOZjCtBgVITi0/hYqck4HG 1UCRGT8mo598LI1o7bpYjne+7J0yKmaW9EuBQvnGuINjwtRP9N/GnEsA2VOpWoLchciM lbrPOuOQj9EatAfHmd/MIJQyGn51Zih6l7fci/nMQU2RaYfkfrEODi7lIBQhRomJLbif /tLljI7ztSfUwF1pb8Ym8KkaDnpwOUSFbKQhK6VFF05dyCcCq4JWfPiMOX0u/4rYJH5U Kevg+3IDOhCVG8p3Qir+R23fKJU5mnRXNlQ/YIqdYWoVQvgnQmQL4NlKUXf0dDe+Uf8q FyOw== X-Gm-Message-State: ACgBeo2VXZpOLwpH+MX4eufvVLhwDx4qkVMF/NGyzeDkY9YRRtKm0W5y MWKo+YBgd8wfCWLW+OwmaoLkmA== X-Google-Smtp-Source: AA6agR7VCq9o9rb31ziklMeuW2vIyE5vZINyv1AAur7Edf5GqfjCFc0T8IR6q1spIj+JCT30jBg71A== X-Received: by 2002:a63:395:0:b0:42b:80a2:7ad2 with SMTP id 143-20020a630395000000b0042b80a27ad2mr13042872pgd.194.1661800080287; Mon, 29 Aug 2022 12:08:00 -0700 (PDT) Received: from ghaven-kernel ([2601:600:8f80:973::5f]) by smtp.gmail.com with ESMTPSA id 201-20020a6217d2000000b0052d50e14f1dsm7563069pfx.78.2022.08.29.12.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Aug 2022 12:07:59 -0700 (PDT) Date: Mon, 29 Aug 2022 12:07:58 -0700 From: Nate Yocom To: Bastien Nocera , dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.tissoires@redhat.com Subject: Re: [PATCH v5 2/4] Input: joystick: xpad: Add ABS_PROFILE axis value to uapi Message-ID: References: <20220825222420.6833-1-nate@yocom.org> <20220825222420.6833-3-nate@yocom.org> <3e48ef8d13337ce1c3ec68baffc612fde4740b0e.camel@hadess.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3e48ef8d13337ce1c3ec68baffc612fde4740b0e.camel@hadess.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 27, 2022 at 12:40:46PM +0200, Bastien Nocera wrote: > On Thu, 2022-08-25 at 15:24 -0700, Nate Yocom wrote: > > Add an ABS_PROFILE axis for input devices which need it, e.g. X-Box > > Adaptive Controller and X-Box Elite 2. > > --- > >  include/uapi/linux/input-event-codes.h | 1 + > >  1 file changed, 1 insertion(+) > > > > diff --git a/include/uapi/linux/input-event-codes.h > > b/include/uapi/linux/input-event-codes.h > > index dff8e7f17074..7ad931a32970 100644 > > --- a/include/uapi/linux/input-event-codes.h > > +++ b/include/uapi/linux/input-event-codes.h > > @@ -862,6 +862,7 @@ > >  #define ABS_TOOL_WIDTH         0x1c > >   > >  #define ABS_VOLUME             0x20 > > +#define ABS_PROFILE            0x21 > >   > >  #define ABS_MISC               0x28 > >   > > > You probably also want to add it to the absolutes array in > drivers/hid/hid-debug.c. doh, roger. > Again, you might want to wait for confirmation from Dmitry that this is > the right way to do this for the profiles. Makes sense. Dmitry?