Refactor DATAFLASH macro in DATAFLASH_CAST
[bertos.git] / bertos / drv / dataflash.h
index ff5b662bd9e57b6ec3b9f2e027b6209f3e082720..1da6105be8c9a3bdecde83b841b8066fea11f472 100644 (file)
@@ -100,7 +100,7 @@ typedef struct DataFlash
 /**
  * Convert + ASSERT from generic KFile to DataFlash.
  */
-INLINE DataFlash * DATAFLASH(KFile *fd)
+INLINE DataFlash * DATAFLASH_CAST(KFile *fd)
 {
        ASSERT(fd->_type == KFT_DATAFLASH);
        return (DataFlash *)fd;