From patchwork Mon Feb 27 07:19:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 13152903 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B494FC64ED6 for ; Mon, 27 Feb 2023 07:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7CMrwHQ500MXmrBPfpJMKyrPUkItbw7XVWACe+huUp4=; b=e+G20Wj77a0dVS c/TfS4dLDh+vjxF/o65brBksGuKEa2QeL16EowYNRZeNxt7hwRYGhxyxe/Y2mdU3hekQO87CE46VV JMTujY0NYrj78z6NJxnwIVWlXqzT+UIAI+w7DHxApQsWuSP1XdgdirBkVtKEwGVGRdzXZVL64WU/i 4KrQsetL/DRbtzsXw3nWirlVKF1GBJg8TRsagy8q64t9pGax0vup2OW/RHM8zl/Xp3/+rgOMH6WyP hABFzTQJC66bVYe1bi2Y2xU3ha/L9Otkn9xWp1LaFyH8leISjmq9WZV4MJOOud50YalbCU5v1qaaC QOrQ/cVs64jVBUA1shSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWXlW-008eMu-OR; Mon, 27 Feb 2023 07:17:42 +0000 Received: from mail-he1eur04on0613.outbound.protection.outlook.com ([2a01:111:f400:fe0d::613] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWXlT-008eLp-3h for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2023 07:17:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D3EtZ9+zDlP7I2RkFN3rEeq0F+ebiu1gkaC3ZkMHhEsDD0qlY4iaBKG9KrWz3Bym5nzqV4HVJU2ixEVTmEZASV1enaj+ysNZEd1hKWKcDGbTIBmZruR0chRxiOMH4vtnR8E+ly/BsHWXfbgd8g/fjsYPnExxLufRnTaKivs5gNFke8zqCjQJ+Ipaxc5ACZqtoyccXWC1qfaRSOftFXH63dCSceFWhWjeiG3dKzQbwstFenHy1SDUBecIltkDPg4ftthXA7Rua006pV9B3fNgNTygbpQ7VzTfLu7/Iy6z/LwERdvD/bPEvdadajgAVgayro9cCy4236SPCxAZEdWxzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=kX/xMObPFGaqmFmU9oafeA1TkDvbp8N+wdI+5gKZtx0=; b=ISsOQpH/tXRhNogwrEufMJ0ELFlEHylb0swunUJat9390q8d8vDhz8A9PwnNTw7d4vzEsZRHufKpR5EA77VHDQI4JfKmt/+4OjtywFeS+cgPcG2V2kpYC53qrSgrwtjY5LcTaOBNwMxrQXlNxb4qqnZvAxFAdA2C9bXEcIPROdSPiDJ8Q63mmE64HHXiwQxLNXR9anAN8cDiGjRMO46FYoTWxgmMXVUTd7RqDSITTzkvw0vFwHN4WrFfktIbkkjaxhnnfl4qCaGtn6vcDyvEzrXwxJFaRSPgAbyZ2a1igjvOLCjvWEzWAL7ZQpJy2NRLh3mAEqfAGyig/Lz8NDEZcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kX/xMObPFGaqmFmU9oafeA1TkDvbp8N+wdI+5gKZtx0=; b=AF7cUAE3AmRgCeKh7N+fO/TgCyCrYLp37iyFVqvy9Ob5g9FZUy+GOjop5wstLGBmWtQ5PNPP57cM4AK4WAjN1PPFZalA8IklYClo0SEIQEG1loN5NCzbtcM44jHKBMTony1eBSElYHqle0KhpfJo30/HERQgNVWSVQWq3MtAUQE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8642.eurprd04.prod.outlook.com (2603:10a6:20b:429::24) by PA4PR04MB7903.eurprd04.prod.outlook.com (2603:10a6:102:b9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Mon, 27 Feb 2023 07:17:33 +0000 Received: from AS8PR04MB8642.eurprd04.prod.outlook.com ([fe80::1793:79b4:2cb7:4db]) by AS8PR04MB8642.eurprd04.prod.outlook.com ([fe80::1793:79b4:2cb7:4db%7]) with mapi id 15.20.6134.029; Mon, 27 Feb 2023 07:17:33 +0000 From: Jacky Bai To: dmitry.torokhov@gmail.com, will@kernel.org, catalin.marinas@arm.com, shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH 1/2] input: snvs_pwrkey: Move snvs pewrkey to misc dir Date: Mon, 27 Feb 2023 15:19:12 +0800 Message-Id: <20230227071913.334617-1-ping.bai@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR01CA0001.apcprd01.prod.exchangelabs.com (2603:1096:4:191::13) To AS8PR04MB8642.eurprd04.prod.outlook.com (2603:10a6:20b:429::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8642:EE_|PA4PR04MB7903:EE_ X-MS-Office365-Filtering-Correlation-Id: b4f0afb9-56fa-403a-81f7-08db1892b1f4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G/JCBCilLayc7VRtXfIE+nH7ytk+z8tOvoXugsePxuCfXGEXLLv/BWDWCK0ktGOcWWtK9zn7t5xlaq4U8AeuWyi4gftUsSTMiUJN3ssixbkgL57JxVeRHjyfxKJHU5oNqm2qiWKQypOuF8CjBdMSW67sCCqL3wBln0vlHe1J9deDFMstcte94UWSTTPnCK5ZFV4n7z2QVuOZ4Cxf8/CX921SscZ3IWqmOGqIP1xYcSpur51XVL70juh5K7tvhcSdFNh8cgdR05KEjdN2+1dLmU+m3AEgwmWlNzryoaRojkBjcGp8Lt4GC6Gxe1Xngu4uYp7UjtwWYK/Lraa1LOAWdrv0rnc7OPRacrJHMdYBSHOmY7EDseFu/Fcdtt0VB+uFRxakiQJmRbjZ9an9SxmP8mV3bTGfhG5a/qMOgM6EkW48o3zq/+pZyMaqp0wL3lazCQxnoRqRQtiN3oCDD5iqiKBm2bUrxQK5aBt7f/QT+bsHe4RsdUNoykbIWxOYOP1Wt0Q63paWNUem8IQS/SWKkii3KLUqOcpmlLWFcg+si94WOpAUN+7H3O5IiRJJSrAQwGtQyeYk040n4cgXPG9OE9/Qg942OdJkT7ALWr1XM2zw/ha1Sp6p1Xe/9lshRDH98RmjKpMrrg6NISDClaRw0kone/2N4p9DAGQTF0gHR/fmEkPy0NFkLB9mwuGfbBirrsvZXg5Q2h2kH2r4ktnKVw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(396003)(136003)(346002)(366004)(39860400002)(451199018)(316002)(36756003)(86362001)(38350700002)(38100700002)(1076003)(6666004)(6506007)(83380400001)(2616005)(186003)(26005)(6512007)(5660300002)(52116002)(8936002)(2906002)(6486002)(478600001)(4326008)(41300700001)(8676002)(66476007)(66946007)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rD2rUNnM2ogyHOrpQRqcMKtyFaNDno9qRRVcjRhfTiOMdyV8yoJ/wOvjmlrFWDzKLVAtfGHoUtL5PTuZlBuIiYrDGNc1fPOdUGX0wzhzKCBKiU25NouWQCEBRACWv+Z4uglnk5rUojfCSEMjxU/IwjIqgVpdlS7M95SR6xNsDbzNFmmMTgMsXn5j7XiDsQ3nSHc9MQk5h4hl7ruSI9BJI8kuH5keGLck8QKgRaGjQj8pHvhhe6mFsqT6/urtQTr4tWYc6gNKV8QuUq24DSG6yVYP7ZKjhZk/df5LXjitm6w17AoaDIETPaTXlIWMCWw2uZMggVVpb9pid0G5MLyEkm0jjCFb1flQESu/RTVvzBk4xG3NxIem93L+Z5qbiXZKqRuta3batVCzLoeyA+F12M0sne/DsWMECKHKhSYg+ve3hYkyQvjw/CNQPQVAABAKQBnI8kFePmf4wo84CeWOhzmmSa3bSeohI1XUz9NmAD6obXNm7y2fNikcsPQqxphKRhpJJ3AzxtQr/veodoFCJjD4d2GiSPGYhoFHZCs9+Vh9lRJ446D9LHyajOb2o7m7ZpqcHvnWs9Nwn6950UIeDam/BZCRhuPRlcsRjucVwa8hjWFK2KQcy/cw4ctbfmIMkiW398LPmfUAg0GQfegbUhw3OJnv+MRq5YJNGINUG//hQlGNEqqVBR7ueAHCb3Noq7LwM20ZBTg3BepRLmdwq1kpdbdGVqwbT7eOZgLnLQ6Fxkd2908IqJjToLH1T2zAZOFqCm4JaeXfkVre7xxjacNj7BpcmA+3fcOHgQSkPfa3OT8xgM3790fUK7KycpKUhiqSWDrresP68YCHcd7bFTZZuNXDD/dKIaz8u9Rakrzg5/3EHaLgt56HO47QSO4m5RncYpSnEFwP5HsdfpwvrTOhPnbmmvZvvykct3sDC5s5so+5G/eY6EaDAeyYpvq8JpxhGK8CJKySKy/Kh3dyJ19LjKxFMH1n0pdLRHuVaEvaVUdMBxXwjixXWQf9iSHTVbmf6Je5vZX4DZnMz74l8kbFj/iWIpaj7eVj0UPmB+puDh26KN4fBTpgQg2q9OIwk1329CKvZjmIzzikCS9KOELKKgu6feYnRaJvAtk27Wp6rrYbI8smTX1jfuNgYr0wypdNIohvc+wXOSs01/wWi7wXKm3y8cJQ3sava5jD6dwmLhtr3bAWRDv0gudc3VZOgV49tzZLaZ+h5UQpxigzPTaIaeOBw2Nj6PKAArXc+gyqgBu7+LEf1C/oeAnQSTRKqZ5TwbVefwzxXLD8aUwkg1f0IxbdYPW02WuscIuFfTT9o0BSHQPZkd5247Z6ldERZ2OSugJ9efqkLxfGL5/c95aEzY62CGMVQzI8E5uS34waHMKJuqutEQwiiOrJ/xLx+IqMIoVWl8XntFU+TWlNFToUDZ6pNM1B1kTlvykEDfdd3N2bOfvh1f5UDM5q2C7NIB/V0Bx0dqAIWiue98KraanmLgUzFKuap0fBMQVKxzhRuhMBHFwahmJqSiiu3xnx2zGmlAeMuGBCaAu/bwVFv3ODuD3Pm0Tz1EO0If5Xgm/ANY7FyZ8292H0PrdUBMbm X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4f0afb9-56fa-403a-81f7-08db1892b1f4 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:17:33.4949 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9Dg9Sntmg8C11EQ3N5vxOlANVqbrwL1mhPJWrIhdruZ23HXOsSlVgJLPx+WvBQx0nQzPvpExs7Z9PVUCMmHt0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7903 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230226_231739_434464_FAD58BD7 X-CRM114-Status: GOOD ( 11.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org snvs pwrkey is not a traditional keyboard device, more sense to move it into input/misc as other pwrkey drivers. Signed-off-by: Jacky Bai --- drivers/input/keyboard/Kconfig | 11 ----------- drivers/input/keyboard/Makefile | 1 - drivers/input/misc/Kconfig | 11 +++++++++++ drivers/input/misc/Makefile | 1 + drivers/input/{keyboard => misc}/snvs_pwrkey.c | 0 5 files changed, 12 insertions(+), 12 deletions(-) rename drivers/input/{keyboard => misc}/snvs_pwrkey.c (100%) diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index 1d0c5f4c0f99..3d58d0457103 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig @@ -445,17 +445,6 @@ config KEYBOARD_MPR121 To compile this driver as a module, choose M here: the module will be called mpr121_touchkey. -config KEYBOARD_SNVS_PWRKEY - tristate "IMX SNVS Power Key Driver" - depends on ARCH_MXC || (COMPILE_TEST && HAS_IOMEM) - depends on OF - help - This is the snvs powerkey driver for the Freescale i.MX application - processors. - - To compile this driver as a module, choose M here; the - module will be called snvs_pwrkey. - config KEYBOARD_IMX tristate "IMX keypad support" depends on ARCH_MXC || COMPILE_TEST diff --git a/drivers/input/keyboard/Makefile b/drivers/input/keyboard/Makefile index aecef00c5d09..80eeb02aaf79 100644 --- a/drivers/input/keyboard/Makefile +++ b/drivers/input/keyboard/Makefile @@ -59,7 +59,6 @@ obj-$(CONFIG_KEYBOARD_QT1070) += qt1070.o obj-$(CONFIG_KEYBOARD_QT2160) += qt2160.o obj-$(CONFIG_KEYBOARD_SAMSUNG) += samsung-keypad.o obj-$(CONFIG_KEYBOARD_SH_KEYSC) += sh_keysc.o -obj-$(CONFIG_KEYBOARD_SNVS_PWRKEY) += snvs_pwrkey.o obj-$(CONFIG_KEYBOARD_SPEAR) += spear-keyboard.o obj-$(CONFIG_KEYBOARD_STMPE) += stmpe-keypad.o obj-$(CONFIG_KEYBOARD_STOWAWAY) += stowaway.o diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index 81a54a59e13c..35cb522b51cb 100644 --- a/drivers/input/misc/Kconfig +++ b/drivers/input/misc/Kconfig @@ -939,4 +939,15 @@ config INPUT_STPMIC1_ONKEY To compile this driver as a module, choose M here: the module will be called stpmic1_onkey. +config INPUT_SNVS_PWRKEY + tristate "IMX SNVS Power Key Driver" + depends on ARCH_MXC || (COMPILE_TEST && HAS_IOMEM) + depends on OF + help + This is the snvs powerkey driver for the Freescale i.MX application + processors. + + To compile this driver as a module, choose M here; the + module will be called snvs_pwrkey. + endif diff --git a/drivers/input/misc/Makefile b/drivers/input/misc/Makefile index 04296a4abe8e..33de0a3b5f6a 100644 --- a/drivers/input/misc/Makefile +++ b/drivers/input/misc/Makefile @@ -90,3 +90,4 @@ obj-$(CONFIG_INPUT_WM831X_ON) += wm831x-on.o obj-$(CONFIG_INPUT_XEN_KBDDEV_FRONTEND) += xen-kbdfront.o obj-$(CONFIG_INPUT_YEALINK) += yealink.o obj-$(CONFIG_INPUT_IDEAPAD_SLIDEBAR) += ideapad_slidebar.o +obj-$(CONFIG_INPUT_SNVS_PWRKEY) += snvs_pwrkey.o diff --git a/drivers/input/keyboard/snvs_pwrkey.c b/drivers/input/misc/snvs_pwrkey.c similarity index 100% rename from drivers/input/keyboard/snvs_pwrkey.c rename to drivers/input/misc/snvs_pwrkey.c