diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-11-01 17:33:21 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-11-01 17:33:21 +0000 |
commit | 19eb800f75db9746435868ff6837b7b3b506ac0a (patch) | |
tree | b06b4eb017d0a38bdd9f742d44ff242215803341 /firmware/export/storage.h | |
parent | 94b6a0be993f83d50e0456dfa452c39926f2ae6c (diff) | |
download | rockbox-19eb800f75db9746435868ff6837b7b3b506ac0a.tar.gz rockbox-19eb800f75db9746435868ff6837b7b3b506ac0a.zip |
conditionalise *_get_info() to get some binsize back
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18965 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/storage.h')
-rw-r--r-- | firmware/export/storage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h index 78d3360ba9..52c6f2bed1 100644 --- a/firmware/export/storage.h +++ b/firmware/export/storage.h | |||
@@ -197,6 +197,7 @@ static inline int storage_spinup_time(void) | |||
197 | #endif | 197 | #endif |
198 | } | 198 | } |
199 | 199 | ||
200 | #ifdef STORAGE_GET_INFO | ||
200 | static inline void storage_get_info(IF_MV2(int drive,) struct storage_info *info) | 201 | static inline void storage_get_info(IF_MV2(int drive,) struct storage_info *info) |
201 | { | 202 | { |
202 | #if (CONFIG_STORAGE & STORAGE_ATA) | 203 | #if (CONFIG_STORAGE & STORAGE_ATA) |
@@ -211,6 +212,7 @@ static inline void storage_get_info(IF_MV2(int drive,) struct storage_info *info | |||
211 | #error No storage driver! | 212 | #error No storage driver! |
212 | #endif | 213 | #endif |
213 | } | 214 | } |
215 | #endif | ||
214 | 216 | ||
215 | #ifdef HAVE_HOTSWAP | 217 | #ifdef HAVE_HOTSWAP |
216 | static inline bool storage_removable(IF_MV_NONVOID(int drive)) | 218 | static inline bool storage_removable(IF_MV_NONVOID(int drive)) |
@@ -310,11 +312,13 @@ static inline int storage_spinup_time(void) | |||
310 | return 0; | 312 | return 0; |
311 | } | 313 | } |
312 | 314 | ||
315 | #ifdef STORAGE_GET_INFO | ||
313 | static inline void storage_get_info(IF_MV2(int drive,) struct storage_info *info) | 316 | static inline void storage_get_info(IF_MV2(int drive,) struct storage_info *info) |
314 | { | 317 | { |
315 | IF_MV((void)drive;) | 318 | IF_MV((void)drive;) |
316 | (void)info; | 319 | (void)info; |
317 | } | 320 | } |
321 | #endif | ||
318 | 322 | ||
319 | #ifdef HAVE_HOTSWAP | 323 | #ifdef HAVE_HOTSWAP |
320 | static inline bool storage_removable(IF_MV_NONVOID(int drive)) | 324 | static inline bool storage_removable(IF_MV_NONVOID(int drive)) |