diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-11-26 00:51:09 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-11-26 00:51:09 +0000 |
commit | ee7cf6c63c67222dcf9af6f40098428c577ee775 (patch) | |
tree | 3fd27260b04243d9fc3c4735c68b92d9d58faccb /firmware/target/arm/tcc780x/sd-tcc780x.c | |
parent | 82bbd1ed9f93020ef49ef91ca3282c4c29d6be88 (diff) | |
download | rockbox-ee7cf6c63c67222dcf9af6f40098428c577ee775.tar.gz rockbox-ee7cf6c63c67222dcf9af6f40098428c577ee775.zip |
Remove unused card_detect(), and make card_detect_target() static inline in each sd driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23757 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc780x/sd-tcc780x.c')
-rw-r--r-- | firmware/target/arm/tcc780x/sd-tcc780x.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/target/arm/tcc780x/sd-tcc780x.c b/firmware/target/arm/tcc780x/sd-tcc780x.c index 222bb88a15..25876aa7ba 100644 --- a/firmware/target/arm/tcc780x/sd-tcc780x.c +++ b/firmware/target/arm/tcc780x/sd-tcc780x.c | |||
@@ -205,9 +205,13 @@ static void sd_card_mux(int card_no) | |||
205 | 205 | ||
206 | #ifdef HAVE_HOTSWAP | 206 | #ifdef HAVE_HOTSWAP |
207 | 207 | ||
208 | bool card_detect_target(void) | 208 | static inline bool card_detect_target(void) |
209 | { | 209 | { |
210 | #ifdef HAVE_HOTSWAP | ||
210 | return (GPIOB & (1<<26)) == 0; /* low active */ | 211 | return (GPIOB & (1<<26)) == 0; /* low active */ |
212 | #else | ||
213 | return false; | ||
214 | #endif | ||
211 | } | 215 | } |
212 | 216 | ||
213 | void card_enable_monitoring_target(bool on) | 217 | void card_enable_monitoring_target(bool on) |
@@ -261,11 +265,6 @@ bool sd_present(IF_MD_NONVOID(int card_no)) | |||
261 | 265 | ||
262 | #else | 266 | #else |
263 | 267 | ||
264 | bool card_detect_target(void) | ||
265 | { | ||
266 | return false; | ||
267 | } | ||
268 | |||
269 | bool sd_removable(IF_MD_NONVOID(int card_no)) | 268 | bool sd_removable(IF_MD_NONVOID(int card_no)) |
270 | { | 269 | { |
271 | #ifndef HAVE_MULTIDRIVE | 270 | #ifndef HAVE_MULTIDRIVE |