Skip to content

Commit

Permalink
MTD: mxc_nand: make bit fields unsigned to please sparse
Browse files Browse the repository at this point in the history
This fixes:

	arch/arm/plat-mxc/include/mach/mxc_nand.h:25:14: error: dubious one-bit signed bitfield
	arch/arm/plat-mxc/include/mach/mxc_nand.h:26:17: error: dubious one-bit signed bitfield

While at it make width unsigned, too.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  • Loading branch information
Uwe Kleine-König committed Jun 30, 2010
1 parent 253ff1f commit cd57c77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/plat-mxc/include/mach/mxc_nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#define __ASM_ARCH_NAND_H

struct mxc_nand_platform_data {
int width; /* data bus width in bytes */
int hw_ecc:1; /* 0 if supress hardware ECC */
int flash_bbt:1; /* set to 1 to use a flash based bbt */
unsigned int width; /* data bus width in bytes */
unsigned int hw_ecc:1; /* 0 if supress hardware ECC */
unsigned int flash_bbt:1; /* set to 1 to use a flash based bbt */
};
#endif /* __ASM_ARCH_NAND_H */

0 comments on commit cd57c77

Please sign in to comment.