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
This commit is contained in:
Thomas Martitz 2009-11-26 00:51:09 +00:00
parent 82bbd1ed9f
commit ee7cf6c63c
7 changed files with 42 additions and 50 deletions

View file

@ -137,6 +137,16 @@ static inline void mci_delay(void)
} while (--i);
}
static inline bool card_detect_target(void)
{
#if defined(HAVE_MULTIDRIVE)
return !(GPIOA_PIN(2));
#else
return false;
#endif
}
#ifdef HAVE_HOTSWAP
static int sd1_oneshot_callback(struct timeout *tmo)
{
@ -872,15 +882,6 @@ tCardInfo *card_get_info_target(int card_no)
return &card_info[card_no];
}
bool card_detect_target(void)
{
#if defined(HAVE_MULTIDRIVE)
return !(GPIOA_PIN(2));
#else
return false;
#endif
}
#ifdef HAVE_HOTSWAP
void card_enable_monitoring_target(bool on)
{