staging: unisys: memregion: move struct memregion to memregion.h

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jes Sorensen 2015-05-05 18:36:31 -04:00 committed by Greg Kroah-Hartman
parent 213e6a6132
commit 81c7492db0
2 changed files with 5 additions and 7 deletions

View File

@ -23,7 +23,11 @@
/* struct memregion is an opaque structure to users.
* Fields are declared only in the implementation .c files.
*/
struct memregion;
struct memregion {
HOSTADDRESS physaddr;
ulong nbytes;
void __iomem *mapped;
};
struct memregion *visor_memregion_create(HOSTADDRESS physaddr, ulong nbytes);
int visor_memregion_resize(struct memregion *memregion, ulong newsize);

View File

@ -25,12 +25,6 @@
#define MYDRVNAME "memregion"
struct memregion {
HOSTADDRESS physaddr;
ulong nbytes;
void __iomem *mapped;
};
static int mapit(struct memregion *memregion);
static void unmapit(struct memregion *memregion);