From: Masahiro Yamada Date: Wed, 21 Sep 2016 02:28:53 +0000 (+0900) Subject: treewide: use #include <...> to include public headers X-Git-Tag: v2016.11-rc1~63 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b5bf5cb3b3e81298247a53d5b514cf941cd13a9f;p=u-boot treewide: use #include <...> to include public headers We are supposed to use #include <...> to include headers in the public include paths. We should use #include "..." only for headers in local directories. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- diff --git a/arch/powerpc/cpu/mpc83xx/qe_io.c b/arch/powerpc/cpu/mpc83xx/qe_io.c index 106704d65d..0e605f8ab4 100644 --- a/arch/powerpc/cpu/mpc83xx/qe_io.c +++ b/arch/powerpc/cpu/mpc83xx/qe_io.c @@ -7,10 +7,10 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include "common.h" -#include "asm/errno.h" -#include "asm/io.h" -#include "asm/immap_83xx.h" +#include +#include +#include +#include #define NUM_OF_PINS 32 void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign) diff --git a/arch/powerpc/cpu/mpc85xx/qe_io.c b/arch/powerpc/cpu/mpc85xx/qe_io.c index d2825ec36e..d805c22bc0 100644 --- a/arch/powerpc/cpu/mpc85xx/qe_io.c +++ b/arch/powerpc/cpu/mpc85xx/qe_io.c @@ -7,10 +7,10 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include "common.h" -#include "asm/errno.h" -#include "asm/io.h" -#include "asm/immap_85xx.h" +#include +#include +#include +#include #if defined(CONFIG_QE) && !defined(CONFIG_U_QE) #define NUM_OF_PINS 32 diff --git a/board/esd/common/lcd.c b/board/esd/common/lcd.c index 22a59e4483..29421fce2e 100644 --- a/board/esd/common/lcd.c +++ b/board/esd/common/lcd.c @@ -8,7 +8,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include "asm/io.h" +#include #include "lcd.h" diff --git a/board/htkw/mcx/mcx.c b/board/htkw/mcx/mcx.c index 4330cf0ddb..5ef383d971 100644 --- a/board/htkw/mcx/mcx.c +++ b/board/htkw/mcx/mcx.c @@ -17,7 +17,7 @@ #include #include #include -#include "errno.h" +#include #include #ifdef CONFIG_USB_EHCI #include diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 2b98984ef2..7e74212424 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -7,11 +7,11 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include "common.h" +#include #include -#include "asm/errno.h" -#include "asm/io.h" -#include "linux/immap_qe.h" +#include +#include +#include #include #ifdef CONFIG_LS102XA #include diff --git a/drivers/qe/uccf.c b/drivers/qe/uccf.c index e011886505..ae4ca35048 100644 --- a/drivers/qe/uccf.c +++ b/drivers/qe/uccf.c @@ -7,11 +7,11 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include "common.h" -#include "malloc.h" -#include "asm/errno.h" -#include "asm/io.h" -#include "linux/immap_qe.h" +#include +#include +#include +#include +#include #include "uccf.h" #include diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c index 468c92ebce..af97538673 100644 --- a/drivers/qe/uec.c +++ b/drivers/qe/uec.c @@ -6,12 +6,12 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include "common.h" -#include "net.h" -#include "malloc.h" -#include "asm/errno.h" -#include "asm/io.h" -#include "linux/immap_qe.h" +#include +#include +#include +#include +#include +#include #include "uccf.h" #include "uec.h" #include "uec_phy.h" diff --git a/drivers/qe/uec_phy.c b/drivers/qe/uec_phy.c index 272874d3b0..be90d943f1 100644 --- a/drivers/qe/uec_phy.c +++ b/drivers/qe/uec_phy.c @@ -10,12 +10,12 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include "common.h" -#include "net.h" -#include "malloc.h" -#include "asm/errno.h" -#include "linux/immap_qe.h" -#include "asm/io.h" +#include +#include +#include +#include +#include +#include #include "uccf.h" #include "uec.h" #include "uec_phy.h" diff --git a/fs/yaffs2/yaffs_mtdif.c b/fs/yaffs2/yaffs_mtdif.c index 6fcba047f9..636c7770e2 100644 --- a/fs/yaffs2/yaffs_mtdif.c +++ b/fs/yaffs2/yaffs_mtdif.c @@ -19,10 +19,10 @@ #include "yaffs_mtdif.h" -#include "linux/mtd/mtd.h" -#include "linux/types.h" -#include "linux/time.h" -#include "linux/mtd/nand.h" +#include +#include +#include +#include static inline void translate_spare2oob(const struct yaffs_spare *spare, u8 *oob) diff --git a/fs/yaffs2/yaffs_mtdif2.c b/fs/yaffs2/yaffs_mtdif2.c index 234cb706df..777486cd07 100644 --- a/fs/yaffs2/yaffs_mtdif2.c +++ b/fs/yaffs2/yaffs_mtdif2.c @@ -15,16 +15,16 @@ /* XXX U-BOOT XXX */ #include -#include "asm/errno.h" +#include #include "yportenv.h" #include "yaffs_trace.h" #include "yaffs_mtdif2.h" -#include "linux/mtd/mtd.h" -#include "linux/types.h" -#include "linux/time.h" +#include +#include +#include #include "yaffs_trace.h" #include "yaffs_packedtags2.h" diff --git a/fs/yaffs2/ydirectenv.h b/fs/yaffs2/ydirectenv.h index 2b3e84fd38..d274f22e84 100644 --- a/fs/yaffs2/ydirectenv.h +++ b/fs/yaffs2/ydirectenv.h @@ -75,7 +75,7 @@ void yaffs_qsort(void *aa, size_t n, size_t es, #define YAFFS_ROOT_MODE 0666 #define YAFFS_LOSTNFOUND_MODE 0666 -#include "linux/list.h" +#include #include "yaffsfs.h" diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 87d72dbad6..d55807b2e2 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -16,12 +16,12 @@ #ifndef __LINUX_MTD_NAND_H #define __LINUX_MTD_NAND_H -#include "config.h" +#include -#include "linux/compat.h" -#include "linux/mtd/mtd.h" -#include "linux/mtd/flashchip.h" -#include "linux/mtd/bbm.h" +#include +#include +#include +#include struct mtd_info; struct nand_flash_dev;