/**
* FlashAvr KFile context structure.
*/
-typedef struct FlashAvrKFile
+typedef struct FlashAvr
{
/**
* File descriptor.
uint8_t page_buf[SPM_PAGESIZE];
-} FlashAvrKFile;
+} FlashAvr;
#define KFT_FLASHAVR MAKE_ID('F', 'L', 'A', 'V')
/**
- * Convert + ASSERT from generic KFile to FlashAvrKFile.
+ * Convert + ASSERT from generic KFile to FlashAvr.
*/
-INLINE FlashAvrKFile * FLASHAVRKFILE(KFile *fd)
+INLINE FlashAvr * FLASHAVR_CAST(KFile *fd)
{
ASSERT(fd->_type == KFT_FLASHAVR);
- return (FlashAvrKFile *)fd;
+ return (FlashAvr *)fd;
}
-void flash_avr_init(struct FlashAvrKFile *fd);
+void flash_avr_init(struct FlashAvr *fd);