From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.201.45 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796013172; b=TJAp+FIMClIapnYGTNvQIci4hebzLJ37zbYAbi6wMJeR8ROqctzvTFCn9Z77WaFHEqCv R1EVwO1AcubaQmO/jeHTZ/iXvNytEq5DpbKwetN7vQ4bIqyaBMEl6DWm7MRBo2laAIvuk 96LIcf+2BvrJOCgQbNaqKAMTgm+WW3jRzcU6iTzIyu4kshHfXFN8v9ucVORaV5j64t9IG bCXkV15lqlO09zZDpTJu/GSjX9m6ygycDOBqXuc0kHTmB/OBIviZdtzj7XqVGOEQUVkUt dyfHwXUZ9VA0RMAhiacuOLKjtq9HW/kGxoCldeMAH+7RCcHfsbDsG+NyMY7zl80YKeQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796013172; h=DMARC-Filter:DKIM-Signature:Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References: Content-Transfer-Encoding:Content-Type:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=GW+Jwuvp6uuzB8hMGMbzdFwvVn1lTk8ZsRx7L/05MBw=; b=sD5hFeUX3QWDlAXMy6AHysnekDRYQAzggBn2kc5Lrcm7vNZcOgL9h8Ynnnlfj7TPJkFt dxcrjP244iudVUfldK5Hp08R9aMh4nAUZ1E5QD9StMsJYuZPLaL2ByNawqgE3vM5lmFcW 25w2oDHGlhK5oaKG4NFlhpD7Bl5yW5Filyi95R/3GdOTdoRz/T8njzgfBe12d3oAEHXDz T4AE9yqKMi0Uc0LIOUd6Z8STIHiWXtSx/t0+uGIlKz06lNjIYsAv+9TFo77783tSeHUS/ J2jJtOvxcBQC+vDZ1ds/87TgvI++gfscB1V/QurXqJnEy43lSHWmhkDXHwtCWY9xpnQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=P6gucT9Q; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.201.45 Received: from CH4PR04CU002.outbound.protection.outlook.com (mail-northcentralusazon11013045.outbound.protection.outlook.com [40.107.201.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0C46606A32A; Mon, 30 Nov 2026 04:32:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D0C46606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=P6gucT9Q ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tbSdZLR4WvD2mbgSoXDqYpCsM7TsvCywkBBgq5sNjRZPs0x3mXWpfPR3OtDJMTW+o7viYoGfnENU2xQc4IyDqr95lu+JBIa2dSmvyOUlIWvWAwYDKUlpNCkTcAx/maIunF1lQ14/H9OgDy+HCnnJhRQvDWjiAYpYYiG+aQR/2C92y0jDziQf9piORwncUOS2YefqfA1FW0Si2RR5p0PgtLUoLh9AToagAo5ro7KD/AI8B6uh+Evdr5yIDFIkAORwW6hxQto0iNwrhpN49PKYLOOKfxM7LaMkrzXqy1wUoHSt3rP8sNMxJAvXsgAyUViWhXU1oI2pY/4mlnG70PHpqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GW+Jwuvp6uuzB8hMGMbzdFwvVn1lTk8ZsRx7L/05MBw=; b=RlW+4jzGmO/mTWOoxcJqzRAuFYYEVHYn1DmNUQTrJy18vJZyTvn17qdqNhseeL/0w7hpvNlzSyAGStlN1uqneDs4lOAOIxboZmk8KxvRRTA+osq4EXGlTStrHpMNlxjq5LyXOd/pX41Y0Ms0SWRjXQNjU4BgLC9yWWiVs9lcgpfpJjYIO1xw+iveIa8VZUlmM7eRrMNeizuuCv48HsQNSLL8TvXnEY0UEKyZhZ6Ljm7kqHwNRaR2rpQt2qoVNUaNg2aMO49JmRHzXtWP5U71fQJ/b6FPUyXtotNIdgrkakKlGceTsD1LHTMRn0vZ/xKdmuWf8iz/ibeKI3dXoKoryg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GW+Jwuvp6uuzB8hMGMbzdFwvVn1lTk8ZsRx7L/05MBw=; b=P6gucT9QeMGyb5lmZY44w3PJ0qzN9jV83vr40jWId0aoas+k+nfnBfNgS/CWf6bR8O5SE4cLe1bIZEKnNRSBXQmRV0XWnaxCD/jdkfVPijJr6qk2kBkMMI7doXlyLO0xJmeEh5QjaAEszJev8vkkDIwBaAUiSj+Goi29q3FPSnlZ2d8jxi0/VZD7dz6uoRYUVg8P4aKsjqVCFXh62/3extG6Rkqv0izRoYPZcN6z3STgDfDzhmLXbgiOBc2Z1NOklFnAUekq4u+MxbsSCdsHcZ1+LZYCyVOzslrBikqG/OKeQBXsR+mtKzq4IK01jo768D3WdhQoEwqybq1fgvXhfw== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DM4PR12MB5102.namprd12.prod.outlook.com (2603:10b6:5:391::21) by SN7PR12MB8436.namprd12.prod.outlook.com (2603:10b6:806:2e3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.12; Mon, 30 Nov 2026 04:32:48 +0000 Received: from DM4PR12MB5102.namprd12.prod.outlook.com ([fe80::36e8:500b:ecc:e0f4]) by DM4PR12MB5102.namprd12.prod.outlook.com ([fe80::36e8:500b:ecc:e0f4%7]) with mapi id 15.21.0662.007; Mon, 30 Nov 2026 04:32:48 +0000 From: David Cemin To: hansg@kernel.org, ilpo.jarvinen@linux.intel.com, W_Armin@gmx.de Cc: mpearson-lenovo@squebb.ca, derekjohn.clark@gmail.com, xy-jackie@139.com, i@rong.moe, marco_giunta@outlook.it, ldemarchi@nvidia.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] platform: lenovo: architecture independent home for the Lenovo WMI drivers Date: Sun, 29 Nov 2026 20:32:42 -0800 Message-ID: <20261130043245.758932-1-dcemin@nvidia.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261121033322.974635-1-dcemin@nvidia.com> References: <20261121033322.974635-1-dcemin@nvidia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: DS7PR07CA0019.namprd07.prod.outlook.com (2603:10b6:5:3af::7) To DM4PR12MB5102.namprd12.prod.outlook.com (2603:10b6:5:391::21) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB5102:EE_|SN7PR12MB8436:EE_ X-MS-Office365-Filtering-Correlation-Id: f666982d-c115-4de7-0d10-08df4e9afcda X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024|23010399003|11063799006|6133799003|261009223027099003|22082099003|18002099003|10067099003|56012099006|261028144727099003|261026140227099003|261026121527099003|261022105027099003|261022075727099003|261102123227099003|261021123027099003|261021121427099003; X-Microsoft-Antispam-Message-Info: +pClCq7vDlVtdEZFr3BLTFLaJ7cv+fw8MAT1/zd34DlJplYzDVX+Dmh3mdkol2ZwAi4QBCmvas9xVSHkQV2JGkQj2ErqoAyH65P2yCcJbSEv8Hvmxe0kfZM7Abg14GXhKLUC0dsE+qPFeBh0TM5ThgLR+VqeOGFlyecEY35yna/ZDUw6D2CYVgcR60ed4jaikW0kUj2VobGOtA80l/NTLYiP7V+ze1hFyCs566vfhw2hBiuYWZSFI+SPcVWNaOztBEuIvDjjq2oS313RMsiy14n4DrJKcSd2Kjj1gCoV5qtFSyhFl1UXindbgSDXZbs1aHZ98yQDMzmnVD/snJGjUawKEDl/hHFecTuFzsQMvacUtbzpXPtkOoOJ8LP7l8f4tS/gK41+XfLaVQPc9m46CaOiHz4H2Z8Mb2mDR3qKgrIXaqMILtaWAO3b/PRnzVm1RA1u5gF+msWsa1oTuUIxOLfogvF/BGhvDdVahwYQ7OUXiefgdx2F4FWNUx6A3rF6qhMiGkgAIBKIsdYawyeHRTSBjiSXB+FYYD5npZXIoxhsHnHPUUR8VYzcLYRSw71QcKv3kjioRBivfdJByy+wSO1isEmut0jQxDg8hqR0sg+HA6f4K1PDqL39G8AIBG0RYNHUb2/xMui72l/ZnyNtB+dMDoDmrg+onDnDlgOsHis= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5102.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(366016)(1800799024)(23010399003)(11063799006)(6133799003)(261009223027099003)(22082099003)(18002099003)(10067099003)(56012099006)(261028144727099003)(261026140227099003)(261026121527099003)(261022105027099003)(261022075727099003)(261102123227099003)(261021123027099003)(261021121427099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?pKUWB2x0IOltTtvGWdZMgoNCJcwCLJvLuKoArspD1M0FE77xEGWxewF4yxAC?= =?us-ascii?Q?0sY3mneTMuHnlW8wgW5XqszpFl0zD2VXqg3i4+U/wI/YqRGlSzbMw4loX4Zr?= =?us-ascii?Q?CEkZiDc0czMI30/Qx4GMpYTagW+ObA3zcU33YgPcYzz2mOf1ySv+rHJZxewk?= =?us-ascii?Q?QgYK/KHeqfaNwJ6JVAoVYFLZsBVYzac7RbD825ahjxaQWgsva3EBMO3UQKTp?= =?us-ascii?Q?5OspgCHNdViLJ/bw3Zxyw9gIKnzcIbNeJTpkNAM8RfsJYv/nUlpULheyaI4X?= =?us-ascii?Q?DP2k9WKRldyujLNwCRW4cwfapsXYXkWCzEA1sRo8JI9ghHBSZvC+E0Vrwumq?= =?us-ascii?Q?xc5iuymtzNTmxd8+qJ0UlbWTF56rMKMc3We7kv666uSdC6KOXINfpV1dBdv2?= =?us-ascii?Q?E+ngs0KoT1L/THZaY72hFGlt+TitIQM5sR9QmQuhZxWBafwY/QSc/O86Itxp?= =?us-ascii?Q?fVLgnTZtC6omEgAOv2orDZxCxu8NdTdcxbHoo/UCUO0MgPpjqOBLUNcVVOnf?= =?us-ascii?Q?mWTZvi8OrXJkCDjrU4uSbfsu0mZgnA1mVbr3jBrp3bKxwwOI1duM6wPhhq/t?= =?us-ascii?Q?yhwfYi9aQse/KDCu3WlWml5fuyz3BLujr8AnASkqojMS3btmBFGWG3HJXXUr?= =?us-ascii?Q?yeTbjzSBvGTVsBweo5jxTynPAm3VhFV8pw+KMw51YiFf/y3/GlzXjB+94AmD?= =?us-ascii?Q?lMByc75Gzng/6j8BtBm1ciIWnvY0qP3NyVczGsll3LV+sAY7jycVDIOWI7Sz?= =?us-ascii?Q?fP4mfd0CwBpsFCSeG0L4YOUPFO+Pga8J9gEhULbdF7Xl22lPd3maNEzf09jL?= =?us-ascii?Q?3C3IwNtaGuhWzLO3seN4mx7K2753oFL2CWjHtZedakw9nU71Qraa/4oPiHRY?= =?us-ascii?Q?niSGqk8w0eH6bLWUpNDwHEfG45bg1Y2EQO5IPhUZQEJAFVgujbt2Okrm0Xy/?= =?us-ascii?Q?P9kU0TvkIvhf7wXbSc0PZo8hzsQmFlfu9DjSwhIe5h49Dcp5dW5IvWlt2hu6?= =?us-ascii?Q?FOkxj0hgKMl+3z3HqM8/rKE8f9YfcuGDPTeH4vlTB/ImAhRhAd8pJnRljBBu?= =?us-ascii?Q?E4h1lz48WV3DVrutIpaaD8QqSoVZkJeIfWS/XwGY06epuoJDvp46UtKav/Fq?= =?us-ascii?Q?AzoO2ZIQDXrKSxEl/Nyu4VELUZeM+xiwh0du+A/bojrJexU9gzhh1ktJnKsZ?= =?us-ascii?Q?SKvDkOZlVLkUW/6nBatDcB45rr4c5EsjPt7UbnsUv24Os2+G65nSx/9oy+ga?= =?us-ascii?Q?5h17tailcRs76MmQ/RXXCvCyS+7W8nrNQNfB4Ys24BCmSQcxVdtWje3pgVTb?= =?us-ascii?Q?jqdrXvVQsWYCl2zw8Y/Zea23IL9ECVTDLEpu9+5YXXg8m6ZiE7F2TCkpjPcU?= =?us-ascii?Q?rVYitQBqTXX51VDfAGAAuMnTxJiz4xOp+heGnvjkcDZ/63Q62l9U4Vne+2tB?= =?us-ascii?Q?M0T282/bz4wujAPNP4pDvwujsJvr3TjBVGAsFVN0k7KJmM2R3v37JtzAJUom?= =?us-ascii?Q?sKTC8SCj600JA+KBzisi8hYmxFIQQ9/6vifzC5MX25XoyYucvLYNL7MN2HTK?= =?us-ascii?Q?zdrPzv60cXWlBnj+LI76oMuClBlMs0Y5pGq/ViUHGX+Ndaqv4PDo2voh/ovD?= =?us-ascii?Q?AjtIcYnoJU5GgbabrcH3TRRFu3w3kcrHGiR1Sb42PTRcUkgYjxvY5mTfbB9W?= =?us-ascii?Q?yKZpQMkVVt+hmff6vX5BAW5eOCjLl5Yzi4nYLqWb/0dAulQryPPVN5LSf9MT?= =?us-ascii?Q?JJIhtABZSg=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f666982d-c115-4de7-0d10-08df4e9afcda X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5102.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 04:32:48.5196 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +ey19ON5zN5uCTPVIlEdgsn9WKlEYp8qxHP0rHvqt53fSH1NnyBmbm4NDebuzkDfWt+AuVrhx40G0QKOjZcrDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8436 Lenovo now ships ACPI based arm64 laptops whose firmware exposes the same ACPI-WMI interfaces as the x86 IdeaPad and Legion machines: the Fn key event GUID consumed by ideapad-laptop, the hotkey utility GUID used for the microphone mute LED, and the GameZone, Other Mode and capability data GUIDs behind the thermal operation modes. Since 884d53763d30 ("platform/wmi: Remove dependency on CONFIG_X86") the ACPI-WMI core builds on arm64, but the Lenovo WMI drivers still live under drivers/platform/x86, which is gated by X86_PLATFORM_DEVICES. This series: 1. moves the architecture independent Lenovo WMI drivers into a new drivers/platform/lenovo directory, following drivers/platform/surface; ideapad-laptop, thinkpad_acpi, think-lmi and the Yoga tablet drivers stay under x86 because they need i8042, port I/O or x86 only devices; 2. adds a WMI Fn keys driver that owns the Fn key and Fn+Esc event GUIDs on every architecture, reports the keys through the keymap taken over from ideapad-laptop, and offers a notifier chain to drivers with platform knowledge; ideapad-laptop drops its WMI event driver in the same patch and subscribes to that notifier for its Fn lock LED and DYTC performance mode handling; 3. adds the keyboard backlight level events seen on the arm64 Yoga as ignored entries. The series applies on top of Rong Zhang's "platform/x86: ideapad-laptop: Trigger the EC on YMC events" (20261116-ymc-82yl-v1-0-fac1a2b01a84@rong.moe) because both touch the ideapad-laptop WMI code and that series modernizes the lenovo-wmi-events helper. Rong offered to co-maintain the new driver and is listed in the MAINTAINERS entry; Rong, please shout if you would rather I drop that until the driver is in. Patch 2 was tested on a Lenovo Yoga 9 2-in-1 16 (arm64): microphone mute, airplane mode, the Smart Key, the Smart Connect key and the Fn+Q performance key report input events with the same scan codes as before. The Fn+Esc GUIDs are not exposed by that firmware, and the ideapad-laptop side is compile tested on x86_64 only; a test on a Yoga 3 or Yoga 700 (Fn+Esc) and on a machine where ideapad-laptop handles the Fn lock LED or DYTC would be appreciated. Changes in v4: - keymap: "WMI ignored events" and "WMI keys" separators as in ideapad-laptop, the 0x40 to 0x43 entries grouped with the other ignored events (Rong) - ideapad-laptop: dropped the duplicate dev_dbg() of the key code, the Fn keys driver already prints it (Rong) - collected Rong's Reviewed-by on patches 2 and 3 Changes in v3: - driver renamed to wmi-fn-keys (LENOVO_WMI_FN_KEYS, lenovo-wmi-fn-keys) so it is not confused with wmi-hotkey-utilities (Jackie); header moved to include/linux/platform_data/lenovo-wmi-fn-keys.h (Rong) - patches 2 and 3 of v2 merged, so both drivers never bind the same WMI devices between the two (Rong) - lwmi_fn_keys_ prefix, per GUID struct lwmi_fn_keys_info with phys name, event size, scan code base and keymap, dedicated keymap for the Esc GUIDs, MODULE_AUTHOR (Rong) - keymap taken over from ideapad-laptop with its scan codes (Fn keys offset by 0x100, Fn+Esc 128) and comments unchanged, so userspace and the hwdb mappings see the same events; the new 0x40 to 0x43 entries moved to their own patch (Rong) - notifier: the event type is the action and the Fn key code the data, ideapad-laptop keeps its switch statement; the notifier is unregistered before the DYTC and LED teardown instead of devm (Rong) - ideapad-laptop: imply LENOVO_WMI_FN_KEYS and IS_REACHABLE() instead of a depends on, so existing configurations keep the Fn keys (Rong); dropped the ACPI_WMI dependency (Armin); #else/#endif comments - collected Rong's Reviewed-by on patch 1 Changes in v2: - dropped the WMI core Kconfig patch, 884d53763d30 covers it (Armin) - notify_new with the wmi_buffer, devm_kzalloc_obj, drvdata set before input registration, KEY_PERFORMANCE for 0x3d (Armin) - notifier chain called before the keymap lookup, NOTIFY_STOP suppresses the key (Hans, Armin); input device named like the ideapad-laptop one so the hwdb mappings keep applying (Hans) - camera lens cover switch and Fn+Esc GUIDs handled by the new driver so ideapad-laptop registers no WMI event driver at all (Armin) - 0x48 (Smart Connect) stays KEY_LINK_PHONE as in ideapad-laptop since ccc8c8481c1f (Marco Giunta) - collected Mark's and Jackie's Reviewed-by on patch 1 David Cemin (3): platform: lenovo: move the architecture independent WMI drivers out of x86 platform: lenovo: add WMI Fn keys driver and use it from ideapad-laptop platform: lenovo: wmi-fn-keys: ignore the keyboard backlight level events MAINTAINERS | 11 +- drivers/platform/Kconfig | 2 + drivers/platform/Makefile | 1 + drivers/platform/lenovo/Kconfig | 102 ++++++ drivers/platform/lenovo/Makefile | 23 ++ .../platform/{x86 => }/lenovo/wmi-camera.c | 0 .../platform/{x86 => }/lenovo/wmi-capdata.c | 0 .../platform/{x86 => }/lenovo/wmi-capdata.h | 0 .../platform/{x86 => }/lenovo/wmi-events.c | 0 .../platform/{x86 => }/lenovo/wmi-events.h | 0 drivers/platform/lenovo/wmi-fn-keys.c | 294 ++++++++++++++++++ .../platform/{x86 => }/lenovo/wmi-gamezone.c | 0 .../platform/{x86 => }/lenovo/wmi-helpers.c | 0 .../platform/{x86 => }/lenovo/wmi-helpers.h | 0 .../{x86 => }/lenovo/wmi-hotkey-utilities.c | 0 drivers/platform/{x86 => }/lenovo/wmi-other.c | 0 drivers/platform/x86/lenovo/Kconfig | 69 +--- drivers/platform/x86/lenovo/Makefile | 7 - drivers/platform/x86/lenovo/ideapad-laptop.c | 226 +++----------- .../linux/platform_data/lenovo-wmi-fn-keys.h | 32 ++ 20 files changed, 513 insertions(+), 254 deletions(-) create mode 100644 drivers/platform/lenovo/Kconfig create mode 100644 drivers/platform/lenovo/Makefile rename drivers/platform/{x86 => }/lenovo/wmi-camera.c (100%) rename drivers/platform/{x86 => }/lenovo/wmi-capdata.c (100%) rename drivers/platform/{x86 => }/lenovo/wmi-capdata.h (100%) rename drivers/platform/{x86 => }/lenovo/wmi-events.c (100%) rename drivers/platform/{x86 => }/lenovo/wmi-events.h (100%) create mode 100644 drivers/platform/lenovo/wmi-fn-keys.c rename drivers/platform/{x86 => }/lenovo/wmi-gamezone.c (100%) rename drivers/platform/{x86 => }/lenovo/wmi-helpers.c (100%) rename drivers/platform/{x86 => }/lenovo/wmi-helpers.h (100%) rename drivers/platform/{x86 => }/lenovo/wmi-hotkey-utilities.c (100%) rename drivers/platform/{x86 => }/lenovo/wmi-other.c (100%) create mode 100644 include/linux/platform_data/lenovo-wmi-fn-keys.h base-commit: c7aa2d5a8fb2a1c4f9559df9fc31d6ca86048875 -- 2.56.1