mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
firmware: get rid of unused "xxx_sleep()" storage driver function
storage_sleepnow() is the one that is actually implemented by storage drivers. storage_sleep() sends a Q_STORAGE_SLEEP event to the storage thread, which will normally end up calling the driver's sleepnow() function. Change-Id: Ib6523073348431dcc75c0f10ef99060c6960efd8
This commit is contained in:
parent
41d5ca3c48
commit
04c45933e8
13 changed files with 0 additions and 40 deletions
|
|
@ -74,10 +74,6 @@ long ramdisk_last_disk_activity(void)
|
||||||
return last_disk_activity;
|
return last_disk_activity;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ramdisk_sleep(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void ramdisk_spin(void)
|
void ramdisk_spin(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,6 @@
|
||||||
#include "sdmmc.h"
|
#include "sdmmc.h"
|
||||||
#include "storage.h"
|
#include "storage.h"
|
||||||
|
|
||||||
void sd_sleep(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void sd_spin(void)
|
void sd_spin(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,6 @@ struct storage_info;
|
||||||
|
|
||||||
void ata_enable(bool on);
|
void ata_enable(bool on);
|
||||||
void ata_spindown(int seconds);
|
void ata_spindown(int seconds);
|
||||||
void ata_sleep(void);
|
|
||||||
void ata_sleepnow(void);
|
void ata_sleepnow(void);
|
||||||
/* NOTE: DO NOT use this to poll for disk activity.
|
/* NOTE: DO NOT use this to poll for disk activity.
|
||||||
If you are waiting for the disk to become active before
|
If you are waiting for the disk to become active before
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ struct storage_info;
|
||||||
|
|
||||||
void mmc_enable(bool on);
|
void mmc_enable(bool on);
|
||||||
void mmc_spindown(int seconds);
|
void mmc_spindown(int seconds);
|
||||||
void mmc_sleep(void);
|
|
||||||
void mmc_sleepnow(void);
|
void mmc_sleepnow(void);
|
||||||
bool mmc_disk_is_active(void);
|
bool mmc_disk_is_active(void);
|
||||||
int mmc_soft_reset(void);
|
int mmc_soft_reset(void);
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ struct storage_info;
|
||||||
|
|
||||||
void nand_enable(bool on);
|
void nand_enable(bool on);
|
||||||
void nand_spindown(int seconds);
|
void nand_spindown(int seconds);
|
||||||
void nand_sleep(void);
|
|
||||||
void nand_sleepnow(void);
|
void nand_sleepnow(void);
|
||||||
bool nand_disk_is_active(void);
|
bool nand_disk_is_active(void);
|
||||||
int nand_soft_reset(void);
|
int nand_soft_reset(void);
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ struct storage_info;
|
||||||
|
|
||||||
void ramdisk_enable(bool on);
|
void ramdisk_enable(bool on);
|
||||||
void ramdisk_spindown(int seconds);
|
void ramdisk_spindown(int seconds);
|
||||||
void ramdisk_sleep(void);
|
|
||||||
bool ramdisk_disk_is_active(void);
|
bool ramdisk_disk_is_active(void);
|
||||||
int ramdisk_soft_reset(void);
|
int ramdisk_soft_reset(void);
|
||||||
int ramdisk_init(void) STORAGE_INIT_ATTR;
|
int ramdisk_init(void) STORAGE_INIT_ATTR;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ struct storage_info;
|
||||||
|
|
||||||
void sd_enable(bool on);
|
void sd_enable(bool on);
|
||||||
void sd_spindown(int seconds);
|
void sd_spindown(int seconds);
|
||||||
void sd_sleep(void);
|
|
||||||
void sd_sleepnow(void);
|
void sd_sleepnow(void);
|
||||||
bool sd_disk_is_active(void);
|
bool sd_disk_is_active(void);
|
||||||
int sd_soft_reset(void);
|
int sd_soft_reset(void);
|
||||||
|
|
|
||||||
|
|
@ -1010,10 +1010,6 @@ long nand_last_disk_activity(void)
|
||||||
return last_disk_activity;
|
return last_disk_activity;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nand_sleep(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void nand_spin(void)
|
void nand_spin(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1000,10 +1000,6 @@ void mmc_enable(bool on)
|
||||||
(void) on;
|
(void) on;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mmc_sleepnow(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool mmc_disk_is_active(void)
|
bool mmc_disk_is_active(void)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -56,11 +56,6 @@ void nand_spindown(int seconds)
|
||||||
(void)seconds;
|
(void)seconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nand_sleep(void)
|
|
||||||
{
|
|
||||||
nand_power_down();
|
|
||||||
}
|
|
||||||
|
|
||||||
void nand_sleepnow(void)
|
void nand_sleepnow(void)
|
||||||
{
|
{
|
||||||
nand_power_down();
|
nand_power_down();
|
||||||
|
|
|
||||||
|
|
@ -50,10 +50,6 @@ void nand_spindown(int seconds)
|
||||||
(void)seconds;
|
(void)seconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nand_sleep(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void nand_sleepnow(void)
|
void nand_sleepnow(void)
|
||||||
{
|
{
|
||||||
nand_power_down();
|
nand_power_down();
|
||||||
|
|
|
||||||
|
|
@ -695,11 +695,6 @@ void nand_spindown(int seconds)
|
||||||
(void)seconds;
|
(void)seconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nand_sleep(void)
|
|
||||||
{
|
|
||||||
/* null */
|
|
||||||
}
|
|
||||||
|
|
||||||
void nand_spin(void)
|
void nand_spin(void)
|
||||||
{
|
{
|
||||||
/* null */
|
/* null */
|
||||||
|
|
|
||||||
|
|
@ -630,11 +630,6 @@ void nand_spindown(int seconds)
|
||||||
(void)seconds;
|
(void)seconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nand_sleep(void)
|
|
||||||
{
|
|
||||||
/* null */
|
|
||||||
}
|
|
||||||
|
|
||||||
void nand_spin(void)
|
void nand_spin(void)
|
||||||
{
|
{
|
||||||
/* null */
|
/* null */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue