Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp228330pxv; Thu, 24 Jun 2021 06:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG8HQ0SYqeO2Dd3flLGeFfqwVEtCT/bbSNUcSmBR2UtZECrBTmZMOS+PBzyWUKnGe8d8Wk X-Received: by 2002:a05:6602:134f:: with SMTP id i15mr4280280iov.143.1624542246624; Thu, 24 Jun 2021 06:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624542246; cv=none; d=google.com; s=arc-20160816; b=HVgneHbu2hntTo2MfxHZYT+oNQIvVEjT8HQfuC2/nbaEAyR4Ne6ZvCEhXYCNQkUOKW P3yDDbv8lqqH/yh7PIdLkjFdBAM5g154r40tCdLaXDsHYY502gWLATJsAVx1kUdAt70z AXWRGFDCRbStL71+Afs4Ag88b7ULBepXZIvd2dvZo5ENQbZtZXHdqLjToEwEH8anvppo zlZtgu5AgbXavq6YjqPbe4v0SJK5VOj+mgFa9nI43oDK+DEdPSz9knwy5JxQJKbuw2Mg EhIJmsgWJmERASeQwS8CzHhy5FTU6ZYjN6RyA28O/tylKBesr5hsptT5h+MNhC4ipJpz 7B7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=CTA8WoGsRZgFl0T8f4PzD+HaxiA/61+Pm7g5WFyGloo=; b=T9DSj63lXFFW50XvTNLfCDp9eRw1VqETjMVQwJHFSulAOKmg9kuJ+Cddm+f73cXt98 c2Q0Zxy3pMvKBv3bZHxcYVHWb3OcSLMTh8tSWyZSDObkldxa148Pt1SWZMvnhQYt8/zT oZH77UKg6Om+wGIA0hw6MEYT9pKb6OlHO52pg9Q5SKHw7inSRWe3s0B0BZHiAMOpsjer wSLssg0tGJYCW9GEa/gjL02nDH0lXgq9sBdF+27Wjmq9BkS4lWUlMNevgxje5EEfm8zB lrtj18sb4h8xXsUBpsXtTrHEeYithW9hReMWopZ+tYtz3QACo8Thfnd+Hk/YYOliWfD/ qokA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lxm30Uuq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si3931492jat.22.2021.06.24.06.43.54; Thu, 24 Jun 2021 06:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lxm30Uuq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231169AbhFXNn6 (ORCPT + 99 others); Thu, 24 Jun 2021 09:43:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:32928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbhFXNn5 (ORCPT ); Thu, 24 Jun 2021 09:43:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9EBB4613DC; Thu, 24 Jun 2021 13:41:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624542098; bh=Q5XRw5adCPiypuyfJm2Co5msCh8O+vpMzbd2IR4nRVQ=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=Lxm30UuqsD3x3QIxS/+whFGWM8MZ5TVS8XfAbeii9nTTpojKCNiSuXQenKP89SSrC QBBdX07zCuVyPZxTiITVDKxAGbsluHSXjaXlMzYnqYw30uPP3QdddLad3fKIOSDJYn qM5OIrtV0/DS/9J7wo7zMpydVKMEWz4hEixW8XbGkBIX1DCfk319GGWYUCAXhGiS3c tKRROSmQjParnI+Jrvj/AnC6rUg41dRWksMO7DOkMXnMacyOD8Uq+eLOUyiDZtSDpF Pdr2KWOOEWfdrJGXyXEqvL0cB8YTJs0h75hh+yz6Y/Aj3puJCJyThCDIcvWTMptzxS 2eVCLl5TzkTZg== Date: Thu, 24 Jun 2021 15:41:30 +0200 (CEST) From: Jiri Kosina To: =?ISO-8859-15?Q?Thomas_Wei=DFschuh?= cc: linux-input@vger.kernel.org, Benjamin Tissoires , Hans de Goede , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] HID: input: Add support for Programmable Buttons In-Reply-To: <20210615214103.1031479-1-linux@weissschuh.net> Message-ID: References: <20210615214103.1031479-1-linux@weissschuh.net> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Jun 2021, Thomas Weißschuh wrote: > Map them to KEY_MACRO# event codes. > > These buttons are defined by HID as follows: > "The user defines the function of these buttons to control software applications or GUI objects." > > This matches the semantics of the KEY_MACRO# input event codes that Linux supports. > > Also add support for HID "Named Array" collections. > Also add hid-debug support for KEY_MACRO#. > > Signed-off-by: Thomas Weißschuh > --- > > --- > > v1: https://lore.kernel.org/linux-input/20210519160349.609690-1-linux@weissschuh.net/ > > v1 -> v2: Only handle the 30 keys known > > v2: https://lore.kernel.org/linux-input/20210519174345.614467-1-linux@weissschuh.net/ > > v2 -> v3: > * Use hex constants for consistency > * Validate that the button is part of a "Programmable Buttons" Named Array. > Otherwise the condition would also apply to "Function Buttons". > * Ignore non-"Programmable Buttons" buttons. > > v3: https://lore.kernel.org/linux-input/20210520084805.685486-1-linux@weissschuh.net/ > > v3 -> v4: > * Mention new support for HID "Named Array" collections in commit message. > * Mention new support KEY_MACRO# in hid-debug. Applied, thank you. -- Jiri Kosina SUSE Labs