diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2020-07-31 14:20:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-31 14:38:12 +0200 |
commit | 97a6f772f36b7f52bcfa56a581bbd2470cffe23d (patch) | |
tree | cfda78fcb39ac1846b0d1a944dbd250eee0d81ed | |
parent | 11c416e3f0ea437661514fa68967a5dba3cdf886 (diff) | |
download | linux-97a6f772f36b7f52bcfa56a581bbd2470cffe23d.tar.gz linux-97a6f772f36b7f52bcfa56a581bbd2470cffe23d.tar.bz2 linux-97a6f772f36b7f52bcfa56a581bbd2470cffe23d.zip |
drivers: most: add USB adapter driver
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>
-rw-r--r-- | drivers/most/Kconfig | 11 | ||||
-rw-r--r-- | drivers/most/Makefile | 2 | ||||
-rw-r--r-- | drivers/most/most_usb.c (renamed from drivers/staging/most/usb/usb.c) | 0 | ||||
-rw-r--r-- | drivers/staging/most/Kconfig | 2 | ||||
-rw-r--r-- | drivers/staging/most/usb/Kconfig | 13 | ||||
-rw-r--r-- | drivers/staging/most/usb/Makefile | 4 |
6 files changed, 13 insertions, 19 deletions
diff --git a/drivers/most/Kconfig b/drivers/most/Kconfig index 58d7999170a7..60fc0820dad3 100644 --- a/drivers/most/Kconfig +++ b/drivers/most/Kconfig @@ -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 diff --git a/drivers/most/Makefile b/drivers/most/Makefile index e810cd3a47ee..6a3cb9056288 100644 --- a/drivers/most/Makefile +++ b/drivers/most/Makefile @@ -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 diff --git a/drivers/staging/most/usb/usb.c b/drivers/most/most_usb.c index 2640c5b326a4..2640c5b326a4 100644 --- a/drivers/staging/most/usb/usb.c +++ b/drivers/most/most_usb.c diff --git a/drivers/staging/most/Kconfig b/drivers/staging/most/Kconfig index c5a99f750abe..c35fb34fae79 100644 --- a/drivers/staging/most/Kconfig +++ b/drivers/staging/most/Kconfig @@ -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 index a47a973dfb1d..000000000000 --- a/drivers/staging/most/usb/Kconfig +++ /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 index c2b207339aec..000000000000 --- a/drivers/staging/most/usb/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_MOST_USB) += most_usb.o - -most_usb-objs := usb.o |