1
0
Fork 0
forked from len0rd/rockbox

Storage API : remove undeeded target-specific functions

storage_sleep, storage_spin, storage_spindown are only defined if #defiend (HAVE_DISK_STORAGE), not for MMC/ATA/SD
remove already unneeded nand_disk_is_active, nand_soft_reset

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21912 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2009-07-17 00:09:14 +00:00
parent 20f8666b89
commit 8eba69f91b
15 changed files with 29 additions and 97 deletions

View file

@ -172,7 +172,9 @@ static inline void disk_buf_buffer(void)
if (!stream_get_window(&sw))
{
disk_buf.state = TSTATE_DATA;
#ifdef HAVE_DISK_STORAGE
rb->storage_sleep();
#endif
break;
}
@ -187,7 +189,9 @@ static inline void disk_buf_buffer(void)
/* Free space is less than one page */
disk_buf.state = TSTATE_DATA;
disk_buf.low_wm = DISK_BUF_LOW_WATERMARK;
#ifdef HAVE_DISK_STORAGE
rb->storage_sleep();
#endif
break;
}
@ -209,7 +213,9 @@ static inline void disk_buf_buffer(void)
{
/* Error or end of stream */
disk_buf.state = TSTATE_EOS;
#ifdef HAVE_DISK_STORAGE
rb->storage_sleep();
#endif
break;
}