Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1243558rwe; Sat, 27 Aug 2022 04:06:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR6dw/tAFjXJjV4sYvQA4c7IFCpuNlb4hCSECcY/CPxbCdc6ToJZxREtSli4GwiRcgz7M2+t X-Received: by 2002:a50:baea:0:b0:448:182d:9bc2 with SMTP id x97-20020a50baea000000b00448182d9bc2mr2456123ede.341.1661598410255; Sat, 27 Aug 2022 04:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661598410; cv=none; d=google.com; s=arc-20160816; b=w6KNZY+1IpnnO8xy/EfMEHF41uNQZ3Ua8gwQaP5f6yJvXam9uiZUItBK1czBm3PIyD QQhi1mvLSdExwdVcoqrP0HwXn/kktnfoVHEr6ltLoXNX0PICrdpbWCIRD7yhFwyYARpo H1jODw5Nb+2NEZ0jxQqTnu1FtBVMjp6PDbwmIIGWnC6EchmIfWDBEv5ESRKb1Uqe8c6x ij6MQP/Q+w+UGtLJQmk2Ub/8pRDF29IzCqTcu5hTmo+9NOz2+gyW/kPlNvQ5s24FcomM ED/arw2cgBcfnMYOrP/yzrbXkZXClJ131LCBDKSO99p5blQpyer77+/in+w/MUZyjleN 0clg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=ppP4eizXg6UH6ijegu7DNDNPqBG/PKAiXQOYXgEWVXM=; b=PIKZxS5qphO9G6c8BonpjXWBh5kOuF1Lpvf5ysJbCCP6+/0YHlnz85vY/5JjXe9bYk 82V/49zqObaNXmdJ0dWSUBc4hPLL8lbbipp+u5252h/vg54bL41jkcga763Cs3MO486G /Wzlo7yRgsL6YD25h3ZHX7inF18AQNhcBK1ixKF59sP9ChfmhF1mtEnf/CV2YuuNp88M yRI71Vu4145al2Zpatf0niAa4eAzKj4iWw65zPGYVptZ5sdyJ6FHo+tVcYnb0XOP5SlW 6ZJgP5uYk9LuLKoTya8h/JPuu1VAd5RzqBgbFNGQMLVuaNpnf8GV5WNp0nOg7EdMVUvd cfGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a056402428500b0043e42b0f87asi2678401edc.306.2022.08.27.04.06.22; Sat, 27 Aug 2022 04:06:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230499AbiH0Kkw convert rfc822-to-8bit (ORCPT + 99 others); Sat, 27 Aug 2022 06:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbiH0Kku (ORCPT ); Sat, 27 Aug 2022 06:40:50 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5A856E8B1; Sat, 27 Aug 2022 03:40:49 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 13F56C0006; Sat, 27 Aug 2022 10:40:46 +0000 (UTC) Message-ID: <3e48ef8d13337ce1c3ec68baffc612fde4740b0e.camel@hadess.net> Subject: Re: [PATCH v5 2/4] Input: joystick: xpad: Add ABS_PROFILE axis value to uapi From: Bastien Nocera To: Nate Yocom , dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.tissoires@redhat.com Date: Sat, 27 Aug 2022 12:40:46 +0200 In-Reply-To: <20220825222420.6833-3-nate@yocom.org> References: <20220825222420.6833-1-nate@yocom.org> <20220825222420.6833-3-nate@yocom.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Again, you might want to wait for confirmation from Dmitry that this is the right way to do this for the profiles.