Skip to contentSkip to conversation

input: snvs_pwrkey: Move snvs pewrkey to misc dir

PATCH New Jacky Bai 1 participant 2 messages Feb 27, 2023

Subsystems (2)
lore
Share & tools
lore

Jacky Bai

author
#0 lore raw

PATCH 1/2 input: snvs_pwrkey: Move snvs pewrkey to misc dir

snvs pwrkey is not a traditional keyboard device,
more sense to move it into input/misc as other
pwrkey drivers.

---
 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%)
drivers/input/keyboard/Kconfig +0 -11
index 1d0c5f4c0f99..3d58d0457103 100644
@@ -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
drivers/input/keyboard/Makefile +0 -1
index aecef00c5d09..80eeb02aaf79 100644
@@ -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
drivers/input/misc/Kconfig +11 -0
index 81a54a59e13c..35cb522b51cb 100644
@@ -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
drivers/input/misc/Makefile +1 -0
index 04296a4abe8e..33de0a3b5f6a 100644
@@ -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
drivers/input/misc/snvs_pwrkey.c renamed from drivers/input/keyboard/snvs_pwrkey.c +0 -0
similarity index 100%
rename from drivers/input/keyboard/snvs_pwrkey.c
rename to drivers/input/misc/snvs_pwrkey.c
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/2 arm64: defconfig: Update the config for snvs pwrkey

As the snvs pwrkey will be moved to input/misc dir, the build config for snvs pwrkey also changed to follow the format in input/misc: INPUT_SNVS_PWRKEY. defconfig need to be updated to align with this change.

---
 arch/arm64/configs/defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/configs/defconfig +1 -1
index 7e0487bbdaa0..938b4231c81f 100644
@@ -405,7 +405,6 @@ CONFIG_MHI_WWAN_MBIM=m
 CONFIG_INPUT_EVDEV=y
 CONFIG_KEYBOARD_ADC=m
 CONFIG_KEYBOARD_GPIO=y
-CONFIG_KEYBOARD_SNVS_PWRKEY=m
 CONFIG_KEYBOARD_IMX_SC_KEY=m
 CONFIG_KEYBOARD_CROS_EC=y
 CONFIG_MOUSE_ELAN_I2C=m
@@ -420,6 +419,7 @@ CONFIG_INPUT_PM8XXX_VIBRATOR=m
 CONFIG_INPUT_PWM_BEEPER=m
 CONFIG_INPUT_PWM_VIBRA=m
 CONFIG_INPUT_HISI_POWERKEY=y
+CONFIG_INPUT_SNVS_PWRKEY=m
 # CONFIG_SERIO_SERPORT is not set
 CONFIG_SERIO_AMBAKMI=y
 CONFIG_LEGACY_PTY_COUNT=16
Signature · 1 line
2.34.1