staging: most: remove header include path to drivers/staging
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 15 Jan 2020 16:44:51 +0000 (01:44 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jan 2020 19:56:31 +0000 (20:56 +0100)
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: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20200115164451.13203-1-masahiroy@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 files changed:
drivers/staging/most/Makefile
drivers/staging/most/cdev/Makefile
drivers/staging/most/cdev/cdev.c
drivers/staging/most/configfs.c
drivers/staging/most/core.c
drivers/staging/most/dim2/Makefile
drivers/staging/most/dim2/dim2.c
drivers/staging/most/i2c/Makefile
drivers/staging/most/i2c/i2c.c
drivers/staging/most/net/Makefile
drivers/staging/most/net/net.c
drivers/staging/most/sound/Makefile
drivers/staging/most/sound/sound.c
drivers/staging/most/usb/Makefile
drivers/staging/most/usb/usb.c
drivers/staging/most/video/Makefile
drivers/staging/most/video/video.c

index 85ea5a434ced8fc21d2eddcd33d4a3cb9350ffdd..20a99ecb37c469514d05db26c66ec1535a3daeaa 100644 (file)
@@ -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/
index 9f4a8b8c9c27a7fef0e987dacc4803deacfd7250..ef90cd71994a502fb2b3f12e4b8e9be882d8d479 100644 (file)
@@ -2,4 +2,3 @@
 obj-$(CONFIG_MOST_CDEV) += most_cdev.o
 
 most_cdev-objs := cdev.o
-ccflags-y += -I $(srctree)/drivers/staging/
index 59f346d1f4af46b26a9cb8bb2851df07e48851c2..71943d17f8259b1d6ee0dcbfb09a91a48e7628a2 100644 (file)
@@ -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
 
index 9818f6c8b22a728e82f62825a63e9ff2e030a342..034ab96ef69e1b94b3b7f465ef15a85580f67d8b 100644 (file)
@@ -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
 
index 5772f893c2b514972fc67f39e3431bdbb6030590..bcad2525d94b797b8aa5b610a89ac66fe9fbd351 100644 (file)
@@ -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
index 116f04d692440cdf700154151a6fadb8ff87e986..861adacf6c7293728902164b29eedc9e9d93d803 100644 (file)
@@ -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/
index 9eb10fc0903ec89e766de4b00946ba66ebb723db..15c6aa8fa1ea441ff038b736b821a9cb8eea3c22 100644 (file)
@@ -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"
index 2b3769dc19e7232374ce37804c223b29798dfa9b..71099dd0f85b9c3a8252b9c7a382c1b594828e79 100644 (file)
@@ -2,4 +2,3 @@
 obj-$(CONFIG_MOST_I2C) += most_i2c.o
 
 most_i2c-objs := i2c.o
-ccflags-y += -I $(srctree)/drivers/staging/
index d07719c38fc97304012129a67c6887088e2dd6b2..2980f706584625244537e0f2838c46b11723e0c7 100644 (file)
@@ -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 };
 
index f0ac64dee71bc5e8c8072e49831d53130dc53d40..1582c97eb204ef9b0f71963e6eeb7cb465e1c4e1 100644 (file)
@@ -2,4 +2,3 @@
 obj-$(CONFIG_MOST_NET) += most_net.o
 
 most_net-objs := net.o
-ccflags-y += -I $(srctree)/drivers/staging/
index db4273256ce81398f0a1f07d7080496ba02d37c1..8218c9a06cb5d3e6fdd5c0707ca42b253dd06397 100644 (file)
@@ -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
index a3d086c6ca70239ea5e1cc0b8ea864b5f5f34ac5..f0cd9d8d213e21bbfa1b91ce1b4f954ce1aede72 100644 (file)
@@ -2,4 +2,3 @@
 obj-$(CONFIG_MOST_SOUND) += most_sound.o
 
 most_sound-objs := sound.o
-ccflags-y += -I $(srctree)/drivers/staging/
index 23baf4bd7c120ea456a6cc0ed4ce1b455c7a77a4..44cf2334834ffb33d9d1c3c16aba04a75430df1f 100644 (file)
@@ -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
index 83cf2ead7122a469816b79415b813455b51859b3..c2b207339aec05537ac1999d4cee6c6099f3bc22 100644 (file)
@@ -2,4 +2,3 @@
 obj-$(CONFIG_MOST_USB) += most_usb.o
 
 most_usb-objs := usb.o
-ccflags-y += -I $(srctree)/drivers/staging/
index 491b38e91e9d5fce74e82d39d9cddca0be0e3833..35217ca65cbb80dc10f036a921d072a41a28dc8e 100644 (file)
@@ -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
index 2d857d3cbcc8720c60b5589bf5e0c096577109ce..856175fec8b6e9e175719cbf71cce55702290e78 100644 (file)
@@ -2,4 +2,3 @@
 obj-$(CONFIG_MOST_VIDEO) += most_video.o
 
 most_video-objs := video.o
-ccflags-y += -I $(srctree)/drivers/staging/
index 9e9e45ac386e22e7f7d6b8bd45ca2f9837e4868e..d32ae49d617b1fbc288f56e77d18d4a43789a5ae 100644 (file)
@@ -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