Commit 532c2919 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Greg Kroah-Hartman

staging: most: remove header include path to drivers/staging

There is no need to add "ccflags-y += -I $(srctree)/drivers/staging"
just for including <most/most.h>.

Use the #include "..." directive with the correct relative path.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20200115164451.13203-1-masahiroy@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 79376912
......@@ -2,7 +2,6 @@
obj-$(CONFIG_MOST) += most_core.o
most_core-y := core.o
most_core-y += configfs.o
ccflags-y += -I $(srctree)/drivers/staging/
obj-$(CONFIG_MOST_CDEV) += cdev/
obj-$(CONFIG_MOST_NET) += net/
......
......@@ -2,4 +2,3 @@
obj-$(CONFIG_MOST_CDEV) += most_cdev.o
most_cdev-objs := cdev.o
ccflags-y += -I $(srctree)/drivers/staging/
......@@ -16,7 +16,8 @@
#include <linux/kfifo.h>
#include <linux/uaccess.h>
#include <linux/idr.h>
#include <most/most.h>
#include "../most.h"
#define CHRDEV_REGION_SIZE 50
......
......@@ -10,7 +10,8 @@
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/configfs.h>
#include <most/most.h>
#include "most.h"
#define MAX_STRING_SIZE 80
......
......@@ -20,7 +20,8 @@
#include <linux/kthread.h>
#include <linux/dma-mapping.h>
#include <linux/idr.h>
#include <most/most.h>
#include "most.h"
#define MAX_CHANNELS 64
#define STRING_SIZE 80
......
......@@ -2,4 +2,3 @@
obj-$(CONFIG_MOST_DIM2) += most_dim2.o
most_dim2-objs := dim2.o hal.o sysfs.o
ccflags-y += -I $(srctree)/drivers/staging/
......@@ -21,7 +21,7 @@
#include <linux/sched.h>
#include <linux/kthread.h>
#include <most/most.h>
#include "../most.h"
#include "hal.h"
#include "errors.h"
#include "sysfs.h"
......
......@@ -2,4 +2,3 @@
obj-$(CONFIG_MOST_I2C) += most_i2c.o
most_i2c-objs := i2c.o
ccflags-y += -I $(srctree)/drivers/staging/
......@@ -14,7 +14,7 @@
#include <linux/interrupt.h>
#include <linux/err.h>
#include <most/most.h>
#include "../most.h"
enum { CH_RX, CH_TX, NUM_CHANNELS };
......
......@@ -2,4 +2,3 @@
obj-$(CONFIG_MOST_NET) += most_net.o
most_net-objs := net.o
ccflags-y += -I $(srctree)/drivers/staging/
......@@ -15,7 +15,8 @@
#include <linux/list.h>
#include <linux/wait.h>
#include <linux/kobject.h>
#include <most/most.h>
#include "../most.h"
#define MEP_HDR_LEN 8
#define MDP_HDR_LEN 16
......
......@@ -2,4 +2,3 @@
obj-$(CONFIG_MOST_SOUND) += most_sound.o
most_sound-objs := sound.o
ccflags-y += -I $(srctree)/drivers/staging/
......@@ -17,7 +17,8 @@
#include <sound/pcm_params.h>
#include <linux/sched.h>
#include <linux/kthread.h>
#include <most/most.h>
#include "../most.h"
#define DRIVER_NAME "sound"
#define STRING_SIZE 80
......
......@@ -2,4 +2,3 @@
obj-$(CONFIG_MOST_USB) += most_usb.o
most_usb-objs := usb.o
ccflags-y += -I $(srctree)/drivers/staging/
......@@ -23,7 +23,8 @@
#include <linux/dma-mapping.h>
#include <linux/etherdevice.h>
#include <linux/uaccess.h>
#include <most/most.h>
#include "../most.h"
#define USB_MTU 512
#define NO_ISOCHRONOUS_URB 0
......
......@@ -2,4 +2,3 @@
obj-$(CONFIG_MOST_VIDEO) += most_video.o
most_video-objs := video.o
ccflags-y += -I $(srctree)/drivers/staging/
......@@ -21,7 +21,7 @@
#include <media/v4l2-ctrls.h>
#include <media/v4l2-fh.h>
#include <most/most.h>
#include "../most.h"
#define V4L2_CMP_MAX_INPUT 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment