summaryrefslogtreecommitdiff
path: root/firmware/ata_idle_notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/ata_idle_notify.c')
-rw-r--r--firmware/ata_idle_notify.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/ata_idle_notify.c b/firmware/ata_idle_notify.c
index 3dde52f391..99b1d4d786 100644
--- a/firmware/ata_idle_notify.c
+++ b/firmware/ata_idle_notify.c
@@ -25,9 +25,9 @@
25#include "kernel.h" 25#include "kernel.h"
26#include "string.h" 26#include "string.h"
27 27
28void register_ata_idle_func(ata_idle_notify function) 28void register_storage_idle_func(storage_idle_notify function)
29{ 29{
30#if USING_ATA_CALLBACK 30#if USING_STORAGE_CALLBACK
31 add_event(DISK_EVENT_SPINUP, true, function); 31 add_event(DISK_EVENT_SPINUP, true, function);
32#else 32#else
33 function(); /* just call the function now */ 33 function(); /* just call the function now */
@@ -37,8 +37,8 @@ void register_ata_idle_func(ata_idle_notify function)
37#endif 37#endif
38} 38}
39 39
40#if USING_ATA_CALLBACK 40#if USING_STORAGE_CALLBACK
41void unregister_ata_idle_func(ata_idle_notify func, bool run) 41void unregister_storage_idle_func(storage_idle_notify func, bool run)
42{ 42{
43 remove_event(DISK_EVENT_SPINUP, func); 43 remove_event(DISK_EVENT_SPINUP, func);
44 44
@@ -46,7 +46,7 @@ void unregister_ata_idle_func(ata_idle_notify func, bool run)
46 func(); 46 func();
47} 47}
48 48
49bool call_ata_idle_notifys(bool force) 49bool call_storage_idle_notifys(bool force)
50{ 50{
51 static int lock_until = 0; 51 static int lock_until = 0;
52 52