]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
mtd: nandsim: make some structures anonymous
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 1 Apr 2010 12:22:50 +0000 (15:22 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 10 May 2010 13:12:06 +0000 (14:12 +0100)
We do not need these names. Moreover, there are spelling typos
there: "nansin" instead of "nandsim".

This patch is just a clean up, no functional changes.

Reported-by: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nandsim.c

index 8a0a5d16e0eb14ad1e9ec9dafc1d854364356481..261337efe0ee1557e1bb88f9610216554b82a3f3 100644 (file)
@@ -315,7 +315,7 @@ struct nandsim {
        union ns_mem buf;
 
        /* NAND flash "geometry" */
-       struct nandsin_geometry {
+       struct {
                uint64_t totsz;     /* total flash size, bytes */
                uint32_t secsz;     /* flash sector (erase block) size, bytes */
                uint pgsz;          /* NAND flash page size, bytes */
@@ -334,7 +334,7 @@ struct nandsim {
        } geom;
 
        /* NAND flash internal registers */
-       struct nandsim_regs {
+       struct {
                unsigned command; /* the command register */
                u_char   status;  /* the status register */
                uint     row;     /* the page number */
@@ -345,7 +345,7 @@ struct nandsim {
        } regs;
 
        /* NAND flash lines state */
-        struct ns_lines_status {
+        struct {
                 int ce;  /* chip Enable */
                 int cle; /* command Latch Enable */
                 int ale; /* address Latch Enable */