mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
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:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user