File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,4 +228,5 @@ source "drivers/interconnect/Kconfig"
228228
229229source "drivers/counter/Kconfig"
230230
231+ source "drivers/most/Kconfig"
231232endmenu
Original file line number Diff line number Diff line change @@ -186,3 +186,4 @@ obj-$(CONFIG_SIOX) += siox/
186186obj-$(CONFIG_GNSS) += gnss/
187187obj-$(CONFIG_INTERCONNECT) += interconnect/
188188obj-$(CONFIG_COUNTER) += counter/
189+ obj-$(CONFIG_MOST) += most/
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: GPL-2.0
2+ obj-$(CONFIG_MOST) += most_core.o
3+ most_core-y := core.o \
4+ configfs.o
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
2121source "drivers/staging/most/cdev/Kconfig"
2222
Original file line number Diff line number Diff line change 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
63obj-$(CONFIG_MOST_CDEV) += cdev/
74obj-$(CONFIG_MOST_NET) += net/
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments