From: Jacky Bai <ping.bai@nxp.com>
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 [thread overview]
Message-ID: <20230227071913.334617-1-ping.bai@nxp.com> (raw)
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 <ping.bai@nxp.com>
---
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
--
2.34.1
next reply other threads:[~2023-02-27 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-27 7:19 Jacky Bai [this message]
2023-02-27 7:19 ` [PATCH 2/2] arm64: defconfig: Update the config for snvs pwrkey Jacky Bai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230227071913.334617-1-ping.bai@nxp.com \
--to=ping.bai@nxp.com \
--cc=catalin.marinas@arm.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-input@vger.kernel.org \
--cc=shawnguo@kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox