]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: most: move core files out of the staging area
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 10 Mar 2020 13:02:40 +0000 (14:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Mar 2020 12:42:44 +0000 (13:42 +0100)
This patch moves the core module to the /drivers/most directory
and makes all necessary changes in order to not break the build.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1583845362-26707-2-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 files changed:
drivers/Kconfig
drivers/Makefile
drivers/most/Kconfig [new file with mode: 0644]
drivers/most/Makefile [new file with mode: 0644]
drivers/most/configfs.c [moved from drivers/staging/most/configfs.c with 99% similarity]
drivers/most/core.c [moved from drivers/staging/most/core.c with 99% similarity]
drivers/staging/most/Kconfig
drivers/staging/most/Makefile
drivers/staging/most/cdev/cdev.c
drivers/staging/most/dim2/dim2.c
drivers/staging/most/i2c/i2c.c
drivers/staging/most/net/net.c
drivers/staging/most/sound/sound.c
drivers/staging/most/usb/usb.c
drivers/staging/most/video/video.c
include/linux/most.h [moved from drivers/staging/most/most.h with 100% similarity]

index 8befa53f43beb57babb2919b5e1bd0a0eda31e0f..c7396659fdbe8068aa82d0ad5e2e627f23c2a3ee 100644 (file)
@@ -228,4 +228,5 @@ source "drivers/interconnect/Kconfig"
 
 source "drivers/counter/Kconfig"
 
+source "drivers/most/Kconfig"
 endmenu
index 31cf17dee252fa54558c097d4fee7bbc931fcc1b..7646549a1e93aabf7257a65a6a483800213b6631 100644 (file)
@@ -186,3 +186,4 @@ obj-$(CONFIG_SIOX)          += siox/
 obj-$(CONFIG_GNSS)             += gnss/
 obj-$(CONFIG_INTERCONNECT)     += interconnect/
 obj-$(CONFIG_COUNTER)          += counter/
+obj-$(CONFIG_MOST)             += most/
diff --git a/drivers/most/Kconfig b/drivers/most/Kconfig
new file mode 100644 (file)
index 0000000..58d7999
--- /dev/null
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0
+menuconfig MOST
+       tristate "MOST support"
+       depends on HAS_DMA && CONFIGFS_FS
+       default n
+       help
+         Say Y here if you want to enable MOST support.
+         This driver needs at least one additional component to enable the
+         desired access from userspace (e.g. character devices) and one that
+         matches the network controller's hardware interface (e.g. USB).
+
+         To compile this driver as a module, choose M here: the
+         module will be called most_core.
+
+         If in doubt, say N here.
diff --git a/drivers/most/Makefile b/drivers/most/Makefile
new file mode 100644 (file)
index 0000000..e810cd3
--- /dev/null
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_MOST) += most_core.o
+most_core-y := core.o \
+               configfs.o
similarity index 99%
rename from drivers/staging/most/configfs.c
rename to drivers/most/configfs.c
index 9a961222f458f1936fd13d8c5bf66a1e1b67bde1..27b0c923597f232a1c9ab5408336daa24b60e5ca 100644 (file)
@@ -10,8 +10,7 @@
 #include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/configfs.h>
-
-#include "most.h"
+#include <linux/most.h>
 
 #define MAX_STRING_SIZE 80
 
similarity index 99%
rename from drivers/staging/most/core.c
rename to drivers/most/core.c
index f6b38d9d57e64ec6640d67f9ec20d65812a232d2..06426fc5c990ba1bbdd56564f67b59ce3068e2ce 100644 (file)
@@ -20,8 +20,7 @@
 #include <linux/kthread.h>
 #include <linux/dma-mapping.h>
 #include <linux/idr.h>
-
-#include "most.h"
+#include <linux/most.h>
 
 #define MAX_CHANNELS   64
 #define STRING_SIZE    80
index 6262eb25c80bc69966cea61a751c73e6aef639b5..c5a99f750abecc2f19386bbb094cb954d1346d10 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
-menuconfig MOST
+menuconfig MOST_COMPONENTS
        tristate "MOST support"
-       depends on HAS_DMA && CONFIGFS_FS
+       depends on HAS_DMA && CONFIGFS_FS && MOST
        default n
        help
          Say Y here if you want to enable MOST support.
@@ -16,7 +16,7 @@ menuconfig MOST
 
 
 
-if MOST
+if MOST_COMPONENTS
 
 source "drivers/staging/most/cdev/Kconfig"
 
index 20a99ecb37c469514d05db26c66ec1535a3daeaa..a803a98654a8ea872bbccec46ed04662157cf033 100644 (file)
@@ -1,7 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_MOST) += most_core.o
-most_core-y := core.o
-most_core-y += configfs.o
 
 obj-$(CONFIG_MOST_CDEV)        += cdev/
 obj-$(CONFIG_MOST_NET) += net/
index 71943d17f8259b1d6ee0dcbfb09a91a48e7628a2..cc1e3dea196d4fa385b40fa3e007f44e6fba1ec2 100644 (file)
@@ -16,8 +16,7 @@
 #include <linux/kfifo.h>
 #include <linux/uaccess.h>
 #include <linux/idr.h>
-
-#include "../most.h"
+#include <linux/most.h>
 
 #define CHRDEV_REGION_SIZE 50
 
index 16593281fcdad2991f3c3ea373b3408897959cef..8e0f27e61652d80a2f4a7de81c99a44766539e77 100644 (file)
@@ -20,8 +20,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/sched.h>
 #include <linux/kthread.h>
-
-#include "../most.h"
+#include <linux/most.h>
 #include "hal.h"
 #include "errors.h"
 #include "sysfs.h"
index 2980f706584625244537e0f2838c46b11723e0c7..893a8babdb2f790b2ebad0f8b2bf1aa2bb911c90 100644 (file)
@@ -13,8 +13,7 @@
 #include <linux/i2c.h>
 #include <linux/interrupt.h>
 #include <linux/err.h>
-
-#include "../most.h"
+#include <linux/most.h>
 
 enum { CH_RX, CH_TX, NUM_CHANNELS };
 
index 5547e36e09de1f3572d4f3478f225b43070cfe4a..830f089f1a88ec8599a7d5064bd01914fea200dd 100644 (file)
@@ -15,8 +15,7 @@
 #include <linux/list.h>
 #include <linux/wait.h>
 #include <linux/kobject.h>
-
-#include "../most.h"
+#include <linux/most.h>
 
 #define MEP_HDR_LEN 8
 #define MDP_HDR_LEN 16
index 44cf2334834ffb33d9d1c3c16aba04a75430df1f..1527f410af2bc3ab145593a372f778f2404555e8 100644 (file)
@@ -17,8 +17,7 @@
 #include <sound/pcm_params.h>
 #include <linux/sched.h>
 #include <linux/kthread.h>
-
-#include "../most.h"
+#include <linux/most.h>
 
 #define DRIVER_NAME "sound"
 #define STRING_SIZE    80
index 0bda88c4bc895eb894ebb7791be1c1d3683d4af2..e8c5a8c9837508187172c09ad54be611fba37a8c 100644 (file)
@@ -23,8 +23,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/etherdevice.h>
 #include <linux/uaccess.h>
-
-#include "../most.h"
+#include <linux/most.h>
 
 #define USB_MTU                        512
 #define NO_ISOCHRONOUS_URB     0
index d32ae49d617b1fbc288f56e77d18d4a43789a5ae..20d177aaec44bb937411f594054726dd3cdf0f4f 100644 (file)
@@ -20,8 +20,7 @@
 #include <media/v4l2-device.h>
 #include <media/v4l2-ctrls.h>
 #include <media/v4l2-fh.h>
-
-#include "../most.h"
+#include <linux/most.h>
 
 #define V4L2_CMP_MAX_INPUT  1