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 89F85C63797 for ; Sat, 4 Feb 2023 19:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233657AbjBDTVP (ORCPT ); Sat, 4 Feb 2023 14:21:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231314AbjBDTVM (ORCPT ); Sat, 4 Feb 2023 14:21:12 -0500 Received: from ryne.moe (ryne.moe [157.90.134.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1C70A2BF04; Sat, 4 Feb 2023 11:21:09 -0800 (PST) Received: from localhost.localdomain (unknown [170.55.83.2]) by ryne.moe (Postfix) with ESMTPSA id DEABF1900DD8; Sat, 4 Feb 2023 19:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=redstrate.com; s=default; t=1675538467; bh=cAvQmOIg3cfQ9bmkXgcr4M/P7uaRGleq4zD3yqxi1ro=; h=From:To:Cc:Subject:Date; b=hIAMl7i27OtvBYkG7FhUQfl6HAlJB+IKm/gvIchHN3/F2TqwOoL/unC+o/BLmjLwW jrdcBa/b0cV/MQksDrKo+HazWXwbipR1m7tMd8nxgBS9Fo3uC0fQmMIBDUMOvMRX4f /jbx/9UJEzAp6l4LkK8r+I/Dcr2k5T59N2ndZu5E= From: Joshua Goins To: linux-input@vger.kernel.org Cc: Jiri Kosina , Benjamin Tissoires , linux-kernel@vger.kernel.org, Joshua Goins , kernel test robot , Dan Carpenter , =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Subject: [PATCH v3 0/2] HID: uclogic: Add support for XP-PEN Artist 22R Pro Date: Sat, 4 Feb 2023 14:20:49 -0500 Message-Id: <20230204192051.1287369-1-josh@redstrate.com> X-Mailer: git-send-email 2.39.1 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 Adds support for the XP-PEN Artist 22R Pro, including stylus, tablet frame and pen pressure. The tablet has 20 buttons, but need to be remapped in order since the device reports invalid keycodes. Existing tablet functionality should not be inhibited, as BTN0-8 is still used. New initialization functions are added since the device differs slightly from other UGEE v2 devices. Reported-by: kernel test robot Reported-by: Dan Carpenter Reported-by: José Expósito Signed-off-by: Joshua Goins --- v3 changes: - Removed duplicate frame initialization code, overriding the num of frame buttons instead. - Removed unnessecary key > 0 check. - Renamed init function to something more specific to the device. - Cherry-picked probe magic data patch. - Rebased onto 6.2-rc6 v2 changes: - rewrote initialization code to be more concise, and less error-prone, thanks Dan Carpenter & José Expósito for pointers! - less struct duplication, it now uses compatiable UGEE v2 ones. - uclogic_extra_input_mapping is now static, thanks José again! - straightened out dial transformation, now there's just the two cases and they're decimal. - fixed the patch formatting, it should be easier to apply now. - rebased onto 6.2-rc2 Joshua Goins (1): HID: uclogic: Add support for XP-PEN Artist 22R Pro José Expósito (1): HID: uclogic: Refactor UGEEv2 probe magic data drivers/hid/hid-ids.h | 1 + drivers/hid/hid-uclogic-core.c | 66 +++++++++++++- drivers/hid/hid-uclogic-params.c | 143 +++++++++++++++++++++++++++++-- drivers/hid/hid-uclogic-params.h | 5 ++ drivers/hid/hid-uclogic-rdesc.c | 50 +++++++++++ drivers/hid/hid-uclogic-rdesc.h | 9 ++ 6 files changed, 264 insertions(+), 10 deletions(-) base-commit: 0136d86b78522bbd5755f8194c97a987f0586ba5 -- 2.39.1