From dd8244a422bce7ff9ff79ab1ca2632e1aad6e35a Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 12 Apr 2016 10:20:09 +0200 Subject: include: Move ide platform_data to include/platform_data Signed-off-by: Sascha Hauer --- arch/arm/boards/phytec-phycore-imx27/pcm970.c | 2 +- arch/x86/boards/x86_generic/intf_platform_ide.c | 2 +- drivers/ata/intf_platform_ide.c | 2 +- drivers/ata/pata-imx.c | 2 +- include/platform_data/ide.h | 32 +++++++++++++++++++++++++ include/platform_ide.h | 32 ------------------------- 6 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 include/platform_data/ide.h delete mode 100644 include/platform_ide.h diff --git a/arch/arm/boards/phytec-phycore-imx27/pcm970.c b/arch/arm/boards/phytec-phycore-imx27/pcm970.c index 73df2ad2a8..13bb7c1cf5 100644 --- a/arch/arm/boards/phytec-phycore-imx27/pcm970.c +++ b/arch/arm/boards/phytec-phycore-imx27/pcm970.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/x86/boards/x86_generic/intf_platform_ide.c b/arch/x86/boards/x86_generic/intf_platform_ide.c index 18a2620ce0..528e721d56 100644 --- a/arch/x86/boards/x86_generic/intf_platform_ide.c +++ b/arch/x86/boards/x86_generic/intf_platform_ide.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include "envsector.h" static struct ide_port_info ide_plat = { diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c index 6e74bfb089..c3af0833ba 100644 --- a/drivers/ata/intf_platform_ide.c +++ b/drivers/ata/intf_platform_ide.c @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/ata/pata-imx.c b/drivers/ata/pata-imx.c index 842957331e..c8098a537f 100644 --- a/drivers/ata/pata-imx.c +++ b/drivers/ata/pata-imx.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/platform_data/ide.h b/include/platform_data/ide.h new file mode 100644 index 0000000000..f71fbfbc01 --- /dev/null +++ b/include/platform_data/ide.h @@ -0,0 +1,32 @@ +/* + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __PLATFORM_IDE_H +#define __PLATFORM_IDE_H + +struct ide_port_info { + /* + * I/O port shift, for platforms with ports that are + * constantly spaced and need larger than the 1-byte + * spacing + */ + unsigned ioport_shift; + int dataif_be; /* true if 16 bit data register is big endian */ + + /* handle hard reset of this port */ + void (*reset)(int); /* true: assert reset, false: de-assert reset */ +}; + +#endif /* __PLATFORM_IDE_H */ diff --git a/include/platform_ide.h b/include/platform_ide.h deleted file mode 100644 index f71fbfbc01..0000000000 --- a/include/platform_ide.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#ifndef __PLATFORM_IDE_H -#define __PLATFORM_IDE_H - -struct ide_port_info { - /* - * I/O port shift, for platforms with ports that are - * constantly spaced and need larger than the 1-byte - * spacing - */ - unsigned ioport_shift; - int dataif_be; /* true if 16 bit data register is big endian */ - - /* handle hard reset of this port */ - void (*reset)(int); /* true: assert reset, false: de-assert reset */ -}; - -#endif /* __PLATFORM_IDE_H */ -- cgit v1.2.3