drivers: most: add USB adapter driver
authorChristian Gromm <christian.gromm@microchip.com>
Fri, 31 Jul 2020 12:20:58 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2020 12:38:12 +0000 (14:38 +0200)
This patch adds the USB driver source file most_usb.c and
modifies the Makefile and Kconfig accordingly.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1596198058-26541-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_usb.c [moved from drivers/staging/most/usb/usb.c with 100% similarity]
drivers/staging/most/Kconfig
drivers/staging/most/usb/Kconfig [deleted file]
drivers/staging/most/usb/Makefile [deleted file]

index 58d7999..60fc082 100644 (file)
@@ -13,3 +13,14 @@ menuconfig MOST
          module will be called most_core.
 
          If in doubt, say N here.
+
+if MOST
+config MOST_USB_HDM
+       tristate "USB"
+       depends on USB
+       help
+         Say Y here if you want to connect via USB to network transceiver.
+
+         To compile this driver as a module, choose M here: the
+         module will be called most_usb.
+endif
index e810cd3..6a3cb90 100644 (file)
@@ -2,3 +2,5 @@
 obj-$(CONFIG_MOST) += most_core.o
 most_core-y := core.o \
                configfs.o
+
+obj-$(CONFIG_MOST_USB_HDM) += most_usb.o
index c5a99f7..c35fb34 100644 (file)
@@ -30,6 +30,4 @@ source "drivers/staging/most/dim2/Kconfig"
 
 source "drivers/staging/most/i2c/Kconfig"
 
-source "drivers/staging/most/usb/Kconfig"
-
 endif
diff --git a/drivers/staging/most/usb/Kconfig b/drivers/staging/most/usb/Kconfig
deleted file mode 100644 (file)
index a47a973..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# MOST USB configuration
-#
-
-config MOST_USB
-       tristate "USB"
-       depends on USB
-       help
-         Say Y here if you want to connect via USB to network transceiver.
-
-         To compile this driver as a module, choose M here: the
-         module will be called most_usb.
diff --git a/drivers/staging/most/usb/Makefile b/drivers/staging/most/usb/Makefile
deleted file mode 100644 (file)
index c2b2073..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_MOST_USB) += most_usb.o
-
-most_usb-objs := usb.o