mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: most: move core files
This patch moves the core files to the root dir of the driver. This is needed to clean up the directory layout. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c1dcb35bf1
commit
057301cd97
@ -1,10 +1,15 @@
|
||||
menuconfig MOST
|
||||
tristate "MOST driver"
|
||||
tristate "MOST support"
|
||||
depends on HAS_DMA
|
||||
select MOSTCORE
|
||||
default n
|
||||
---help---
|
||||
This option allows you to enable support for MOST Network transceivers.
|
||||
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.
|
||||
|
||||
@ -12,8 +17,6 @@ menuconfig MOST
|
||||
|
||||
if MOST
|
||||
|
||||
source "drivers/staging/most/mostcore/Kconfig"
|
||||
|
||||
source "drivers/staging/most/aim-cdev/Kconfig"
|
||||
|
||||
source "drivers/staging/most/aim-network/Kconfig"
|
||||
|
@ -1,5 +1,8 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
obj-$(CONFIG_MOSTCORE) += mostcore/
|
||||
obj-$(CONFIG_MOST) += most_core.o
|
||||
most_core-y := core.o
|
||||
ccflags-y += -Idrivers/staging/
|
||||
|
||||
obj-$(CONFIG_AIM_CDEV) += aim-cdev/
|
||||
obj-$(CONFIG_AIM_NETWORK) += aim-network/
|
||||
obj-$(CONFIG_AIM_SOUND) += aim-sound/
|
||||
|
@ -1,4 +1,4 @@
|
||||
obj-$(CONFIG_AIM_CDEV) += aim_cdev.o
|
||||
|
||||
aim_cdev-objs := cdev.o
|
||||
ccflags-y += -Idrivers/staging/most/mostcore/
|
||||
ccflags-y += -Idrivers/staging/
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <linux/kfifo.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/idr.h>
|
||||
#include "mostcore.h"
|
||||
#include "most/core.h"
|
||||
|
||||
static dev_t aim_devno;
|
||||
static struct class *aim_class;
|
||||
|
@ -1,4 +1,4 @@
|
||||
obj-$(CONFIG_AIM_NETWORK) += aim_network.o
|
||||
|
||||
aim_network-objs := networking.o
|
||||
ccflags-y += -Idrivers/staging/most/mostcore/
|
||||
ccflags-y += -Idrivers/staging/
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <linux/list.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/kobject.h>
|
||||
#include "mostcore.h"
|
||||
#include "most/core.h"
|
||||
|
||||
#define MEP_HDR_LEN 8
|
||||
#define MDP_HDR_LEN 16
|
||||
|
@ -1,4 +1,4 @@
|
||||
obj-$(CONFIG_AIM_SOUND) += aim_sound.o
|
||||
|
||||
aim_sound-objs := sound.o
|
||||
ccflags-y += -Idrivers/staging/most/mostcore/
|
||||
ccflags-y += -Idrivers/staging/
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <sound/pcm_params.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/kthread.h>
|
||||
#include <mostcore.h>
|
||||
#include <most/core.h>
|
||||
|
||||
#define DRIVER_NAME "sound"
|
||||
|
||||
|
@ -2,4 +2,4 @@ obj-$(CONFIG_AIM_V4L2) += aim_v4l2.o
|
||||
|
||||
aim_v4l2-objs := video.o
|
||||
|
||||
ccflags-y += -Idrivers/staging/most/mostcore/
|
||||
ccflags-y += -Idrivers/staging/
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <media/v4l2-ctrls.h>
|
||||
#include <media/v4l2-fh.h>
|
||||
|
||||
#include "mostcore.h"
|
||||
#include "most/core.h"
|
||||
|
||||
#define V4L2_AIM_MAX_INPUT 1
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <linux/kthread.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/idr.h>
|
||||
#include "mostcore.h"
|
||||
#include <most/core.h>
|
||||
|
||||
#define MAX_CHANNELS 64
|
||||
#define STRING_SIZE 80
|
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* mostcore.h - Interface between MostCore,
|
||||
* most.h - Interface between MostCore,
|
||||
* Hardware Dependent Module (HDM) and Application Interface Module (AIM).
|
||||
*
|
||||
* Copyright (C) 2013-2015, Microchip Technology Germany II GmbH & Co. KG
|
@ -1,5 +1,5 @@
|
||||
obj-$(CONFIG_HDM_DIM2) += hdm_dim2.o
|
||||
|
||||
hdm_dim2-objs := dim2_hdm.o dim2_hal.o dim2_sysfs.o
|
||||
ccflags-y += -Idrivers/staging/most/mostcore/
|
||||
ccflags-y += -Idrivers/staging/
|
||||
ccflags-y += -Idrivers/staging/most/aim-network/
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <linux/sched.h>
|
||||
#include <linux/kthread.h>
|
||||
|
||||
#include <mostcore.h>
|
||||
#include "most/core.h"
|
||||
#include "dim2_hal.h"
|
||||
#include "dim2_hdm.h"
|
||||
#include "dim2_errors.h"
|
||||
|
@ -1,3 +1,3 @@
|
||||
obj-$(CONFIG_HDM_I2C) += hdm_i2c.o
|
||||
|
||||
ccflags-y += -Idrivers/staging/most/mostcore/
|
||||
ccflags-y += -Idrivers/staging/
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/err.h>
|
||||
|
||||
#include <mostcore.h>
|
||||
#include "most/core.h"
|
||||
|
||||
enum { CH_RX, CH_TX, NUM_CHANNELS };
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
obj-$(CONFIG_HDM_USB) += hdm_usb.o
|
||||
|
||||
ccflags-y += -Idrivers/staging/most/mostcore/
|
||||
ccflags-y += -Idrivers/staging/
|
||||
ccflags-y += -Idrivers/staging/most/aim-network/
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include "mostcore.h"
|
||||
#include "most/core.h"
|
||||
|
||||
#define USB_MTU 512
|
||||
#define NO_ISOCHRONOUS_URB 0
|
||||
|
@ -1,14 +0,0 @@
|
||||
#
|
||||
# MOSTCore configuration
|
||||
#
|
||||
|
||||
config MOSTCORE
|
||||
tristate "MOST Core"
|
||||
depends on HAS_DMA
|
||||
|
||||
---help---
|
||||
Say Y here if you want to enable MOST support.
|
||||
This device driver needs at least an additional AIM and HDM to work.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called mostcore.
|
@ -1,3 +0,0 @@
|
||||
obj-$(CONFIG_MOSTCORE) += mostcore.o
|
||||
|
||||
mostcore-objs := core.o
|
Loading…
Reference in New Issue
Block a user