drivers: most: add character device interface driver
authorChristian Gromm <christian.gromm@microchip.com>
Thu, 20 Aug 2020 11:23:15 +0000 (13:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Sep 2020 13:16:26 +0000 (15:16 +0200)
This patch adds the character device (cdev) driver source file
most_cdev.c and modifies the Makefiles and Kconfigs accordingly.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1597922595-27493-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/most/Kconfig
drivers/most/Makefile
drivers/most/most_cdev.c [moved from drivers/staging/most/cdev/cdev.c with 100% similarity]
drivers/staging/most/Kconfig
drivers/staging/most/Makefile
drivers/staging/most/cdev/Kconfig [deleted file]
drivers/staging/most/cdev/Makefile [deleted file]

index 60fc082..ebfe84e 100644 (file)
@@ -23,4 +23,13 @@ config MOST_USB_HDM
 
          To compile this driver as a module, choose M here: the
          module will be called most_usb.
+
+config MOST_CDEV
+       tristate "Cdev"
+
+       help
+         Say Y here if you want to commumicate via character devices.
+
+         To compile this driver as a module, choose M here: the
+         module will be called most_cdev.
 endif
index 6a3cb90..8b53ca4 100644 (file)
@@ -4,3 +4,4 @@ most_core-y :=  core.o \
                configfs.o
 
 obj-$(CONFIG_MOST_USB_HDM) += most_usb.o
+obj-$(CONFIG_MOST_CDEV) += most_cdev.o
index c35fb34..535e6de 100644 (file)
@@ -18,8 +18,6 @@ menuconfig MOST_COMPONENTS
 
 if MOST_COMPONENTS
 
-source "drivers/staging/most/cdev/Kconfig"
-
 source "drivers/staging/most/net/Kconfig"
 
 source "drivers/staging/most/sound/Kconfig"
index 7c10b84..be94673 100644 (file)
@@ -1,6 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
-obj-$(CONFIG_MOST_CDEV)        += cdev/
 obj-$(CONFIG_MOST_NET) += net/
 obj-$(CONFIG_MOST_SOUND)       += sound/
 obj-$(CONFIG_MOST_VIDEO)       += video/
diff --git a/drivers/staging/most/cdev/Kconfig b/drivers/staging/most/cdev/Kconfig
deleted file mode 100644 (file)
index dab9947..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# MOST Cdev configuration
-#
-
-config MOST_CDEV
-       tristate "Cdev"
-
-       help
-         Say Y here if you want to commumicate via character devices.
-
-         To compile this driver as a module, choose M here: the
-         module will be called most_cdev.
diff --git a/drivers/staging/most/cdev/Makefile b/drivers/staging/most/cdev/Makefile
deleted file mode 100644 (file)
index ef90cd7..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_MOST_CDEV) += most_cdev.o
-
-most_cdev-objs := cdev.o