diff options
author | Rafal Jaworowski <raj@semihalf.com> | 2008-07-28 20:38:25 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-30 01:01:28 +0200 |
commit | 8d87589e8e874df7120a3d9667f051bc33bac250 (patch) | |
tree | 8ee4d94e214d59975feafe1280653f2f8266b7b3 /api_examples/demo.c | |
parent | 6b73b754f782e1ecce5048bf20b22ce56a07a5b8 (diff) |
API: Teach the storage layer about SATA and MMC options.
Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Acked-by: Rafal Jaworowski <raj@semihalf.com>
Diffstat (limited to 'api_examples/demo.c')
-rw-r--r-- | api_examples/demo.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/api_examples/demo.c b/api_examples/demo.c index a8424482ee..69ac318375 100644 --- a/api_examples/demo.c +++ b/api_examples/demo.c @@ -226,20 +226,23 @@ void test_dump_si(struct sys_info *si) } } -static char * test_stor_typ(int type) +static char *test_stor_typ(int type) { if (type & DT_STOR_IDE) return "IDE"; + if (type & DT_STOR_MMC) + return "MMC"; + + if (type & DT_STOR_SATA) + return "SATA"; + if (type & DT_STOR_SCSI) return "SCSI"; if (type & DT_STOR_USB) return "USB"; - if (type & DT_STOR_MMC); - return "MMC"; - return "Unknown"; } |