Fix errors/warnings reported by eZ80 compiler

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2239 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-11-06 22:53:47 +00:00
parent 4da26a9817
commit cb89120bd4
6 changed files with 33 additions and 23 deletions
+1 -1
View File
@@ -464,7 +464,7 @@ enum mmcsd_clock_e
CLOCK_MMC_SLOW, /* MMC initialization clocking */
CLOCK_SD_SLOW, /* SD initialization clocking */
CLOCK_MMC_FAST, /* MMC normal operation clocking */
CLOCK_SD_FAST, /* SD normal operation clocking */
CLOCK_SD_FAST /* SD normal operation clocking */
};
/* This structure defines the interface between the NuttX MMC/SD
+6 -6
View File
@@ -89,10 +89,10 @@ struct mtd_dev_s
/* Read/write from the specified read/write blocks */
int (*bread)(FAR struct mtd_dev_s *dev, off_t startblock, size_t nblocks,
FAR ubyte *buffer);
int (*bwrite)(FAR struct mtd_dev_s *dev, off_t startblock, size_t nblocks,
FAR const ubyte *buffer);
ssize_t (*bread)(FAR struct mtd_dev_s *dev, off_t startblock, size_t nblocks,
FAR ubyte *buffer);
ssize_t (*bwrite)(FAR struct mtd_dev_s *dev, off_t startblock, size_t nblocks,
FAR const ubyte *buffer);
/* Some devices may support byte oriented read (optional). Byte-oriented
* writing is inherently block oriented on most MTD devices and is not supported.
@@ -100,8 +100,8 @@ struct mtd_dev_s
* buffering.
*/
int (*read)(FAR struct mtd_dev_s *dev, off_t offset, size_t nbytes,
FAR ubyte *buffer);
ssize_t (*read)(FAR struct mtd_dev_s *dev, off_t offset, size_t nbytes,
FAR ubyte *buffer);
/* Support other, less frequently used commands:
* - MTDIOC_GEOMETRY: Get MTD geometry