From 8d87589e8e874df7120a3d9667f051bc33bac250 Mon Sep 17 00:00:00 2001 From: Rafal Jaworowski Date: Mon, 28 Jul 2008 20:38:25 +0200 Subject: API: Teach the storage layer about SATA and MMC options. Signed-off-by: Rafal Czubak Acked-by: Rafal Jaworowski --- api_examples/demo.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'api_examples') 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"; } -- cgit