From patchwork Sat Oct 22 07:29:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7735 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1110319wrr; Sat, 22 Oct 2022 01:52:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60QGf/iH/vzZam1Lh/qnqPZvT+TJ3sQrxgJzBvjYmHe9NQwB5FL0KqHQaMV03skXMsS7D6 X-Received: by 2002:a05:6402:358e:b0:45c:aa8b:f7e9 with SMTP id y14-20020a056402358e00b0045caa8bf7e9mr21461078edc.33.1666428733539; Sat, 22 Oct 2022 01:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666428733; cv=none; d=google.com; s=arc-20160816; b=F9cMNdB38reveZaMplkerfZH9ZtOs8gYuXX5v28aXSdlTMUmuCzUGHafhQ0p8E4ws7 1biUD9d+PXN8WEAuAjrs5GY4XqV7956/cmJ0ZSEwNp2NgWQs7UNBpfcmoWZnO8NyhiiY AOOWl3Qfv3fiYxMUINVIaUdKEpQNpQcR/+pAZsN2w2hE4LE8cpxENUYfXPjAKlugFEt2 rzkABBk8yUVIyg2RzHR5xb+5dQGzoR4S8AnAtD7luxCSKb65EjNc6oI8M5VuYMhtIqrS 7dASvYyh0uOHBAFJDHtG52EP7fnh9I83zsew6navAIdlUx7OC5I9cEwCKcViZzXKw6S4 KEPQ== 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:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LUZpSS3F/J9GvaNLVmavrxSqSTqBGYnpz0YIacWVlj0=; b=IEZGaBDGsoRlPdUywEceafX0Bi61833ohEOpqH8mDgxl4OtUxOppPVZqktb5pyEnZN 7EFG+wwu44lRbr3BKuk2cmFWCHXoZD5zgchZ0+61BsWuLQQit9s+0poVOuuYxlu7tHrF iPXGBnR1bQ1sK9gEsYA54Xlo4LQsK2atW+Wuai8WCJosUKI/U+2WPBJ4o5iSyIkg1BdQ htth0w3CJ/hJ3A8jUof4Swe29JRMDlz6XT/6blbisH4/D9Sg9g1QNusnVF5c0cCc+98Y piPPe5iDXyPmvnb+1Z+64TX51yrZ3fv0bpCgI8Jl72hd/9v6VbYIgKIGsifoRkIZohSf cYKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U880E7Bf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm12-20020a170907948c00b0078a802cce5dsi10493269ejc.592.2022.10.22.01.51.49; Sat, 22 Oct 2022 01:52:13 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U880E7Bf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234938AbiJVIur (ORCPT + 99 others); Sat, 22 Oct 2022 04:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235183AbiJVItz (ORCPT ); Sat, 22 Oct 2022 04:49:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 852F1277A1D; Sat, 22 Oct 2022 01:11:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 82C9CB82E40; Sat, 22 Oct 2022 08:08:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF05EC433C1; Sat, 22 Oct 2022 08:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666426084; bh=30oaRr/+0z675hWSv80pGu8HA4e+AOyozO+DFfi9qj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U880E7BfUUzLXmJsSAaaopKJqy3ZJfwYqIQdmf6VuXQ89FyPHteK/vFWURkP+aj03 ji/DZpFSbl1IPPke7jgEFZ9PdK/O6YKeog75CS5UE6HaHe0BkoK00s7cXzFyxy2rbT 4CHMg4jItEtvUd5j1DE6O+vX5jRncO5mZNpiOMmg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?utf-8?b?Sm9zw6kgRXhww7NzaXRv?= , Jiri Kosina Subject: [PATCH 5.19 713/717] HID: uclogic: Add missing suffix for digitalizers Date: Sat, 22 Oct 2022 09:29:52 +0200 Message-Id: <20221022072530.001085316@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747377175921670584?= X-GMAIL-MSGID: =?utf-8?q?1747377175921670584?= From: José Expósito commit 0977fda0587cbc5403651ba169e264aa01e8a026 upstream. The Pen (0x02) application usage was changed to Digitalizer (0x01) in commit f7d8e387d9ae ("HID: uclogic: Switch to Digitizer usage for styluses"). However, a suffix was not selected for the new usage. Handle the digitalizer application usage in uclogic_input_configured() and add the required suffix. Signed-off-by: José Expósito Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-uclogic-core.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/hid/hid-uclogic-core.c +++ b/drivers/hid/hid-uclogic-core.c @@ -153,6 +153,7 @@ static int uclogic_input_configured(stru suffix = "Pad"; break; case HID_DG_PEN: + case HID_DG_DIGITIZER: suffix = "Pen"; break; case HID_CP_CONSUMER_CONTROL: