Skip to content

Commit b276527

Browse files
cgrogregkh
authored andcommitted
staging: most: move core files out of the staging area
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>
1 parent 22dd4ac commit b276527

16 files changed

Lines changed: 33 additions & 24 deletions

File tree

‎drivers/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,5 @@ source "drivers/interconnect/Kconfig"
228228

229229
source "drivers/counter/Kconfig"
230230

231+
source "drivers/most/Kconfig"
231232
endmenu

‎drivers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,4 @@ obj-$(CONFIG_SIOX) += siox/
186186
obj-$(CONFIG_GNSS) += gnss/
187187
obj-$(CONFIG_INTERCONNECT) += interconnect/
188188
obj-$(CONFIG_COUNTER) += counter/
189+
obj-$(CONFIG_MOST) += most/

‎drivers/most/Kconfig‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
menuconfig MOST
3+
tristate "MOST support"
4+
depends on HAS_DMA && CONFIGFS_FS
5+
default n
6+
help
7+
Say Y here if you want to enable MOST support.
8+
This driver needs at least one additional component to enable the
9+
desired access from userspace (e.g. character devices) and one that
10+
matches the network controller's hardware interface (e.g. USB).
11+
12+
To compile this driver as a module, choose M here: the
13+
module will be called most_core.
14+
15+
If in doubt, say N here.

‎drivers/most/Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_MOST) += most_core.o
3+
most_core-y := core.o \
4+
configfs.o
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
#include <linux/slab.h>
1111
#include <linux/init.h>
1212
#include <linux/configfs.h>
13-
14-
#include "most.h"
13+
#include <linux/most.h>
1514

1615
#define MAX_STRING_SIZE 80
1716

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
#include <linux/kthread.h>
2121
#include <linux/dma-mapping.h>
2222
#include <linux/idr.h>
23-
24-
#include "most.h"
23+
#include <linux/most.h>
2524

2625
#define MAX_CHANNELS 64
2726
#define STRING_SIZE 80

‎drivers/staging/most/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
menuconfig MOST
2+
menuconfig MOST_COMPONENTS
33
tristate "MOST support"
4-
depends on HAS_DMA && CONFIGFS_FS
4+
depends on HAS_DMA && CONFIGFS_FS && MOST
55
default n
66
help
77
Say Y here if you want to enable MOST support.
@@ -16,7 +16,7 @@ menuconfig MOST
1616

1717

1818

19-
if MOST
19+
if MOST_COMPONENTS
2020

2121
source "drivers/staging/most/cdev/Kconfig"
2222

‎drivers/staging/most/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-$(CONFIG_MOST) += most_core.o
3-
most_core-y := core.o
4-
most_core-y += configfs.o
52

63
obj-$(CONFIG_MOST_CDEV) += cdev/
74
obj-$(CONFIG_MOST_NET) += net/

‎drivers/staging/most/cdev/cdev.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
#include <linux/kfifo.h>
1717
#include <linux/uaccess.h>
1818
#include <linux/idr.h>
19-
20-
#include "../most.h"
19+
#include <linux/most.h>
2120

2221
#define CHRDEV_REGION_SIZE 50
2322

‎drivers/staging/most/dim2/dim2.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
#include <linux/dma-mapping.h>
2121
#include <linux/sched.h>
2222
#include <linux/kthread.h>
23-
24-
#include "../most.h"
23+
#include <linux/most.h>
2524
#include "hal.h"
2625
#include "errors.h"
2726
#include "sysfs.h"

0 commit comments

Comments
 (0)