summaryrefslogtreecommitdiff
path: root/firmware/target/sh/archos
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-08-17 12:18:22 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-08-17 12:18:22 -0400
commita56f1ca1ed63b93eb61fd5319f47347b3eb1e364 (patch)
tree62a253ba44b23c1867cef59fee40b40092719ee1 /firmware/target/sh/archos
parentc13f21a4d5c27c638c9f0dedf6d7b1f9bbb4d682 (diff)
downloadrockbox-a56f1ca1ed63b93eb61fd5319f47347b3eb1e364.tar.gz
rockbox-a56f1ca1ed63b93eb61fd5319f47347b3eb1e364.zip
Cleanup MV/MD macros a little.
When using variadic macros there's no need for IF_MD2/IF_MV2 to deal with function parameters. IF_MD/IF_MV are enough. Throw in IF_MD_DRV/ID_MV_VOL that return the parameter if MD/MV, or 0 if not. Change-Id: I7605e6039f3be19cb47110c84dcb3c5516f2c3eb
Diffstat (limited to 'firmware/target/sh/archos')
-rw-r--r--firmware/target/sh/archos/ondio/ata_mmc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/sh/archos/ondio/ata_mmc.c b/firmware/target/sh/archos/ondio/ata_mmc.c
index fc2efcd3e4..5d95a0e789 100644
--- a/firmware/target/sh/archos/ondio/ata_mmc.c
+++ b/firmware/target/sh/archos/ondio/ata_mmc.c
@@ -603,7 +603,7 @@ static int send_block_send(unsigned char start_token, long timeout,
603 return rc; 603 return rc;
604} 604}
605 605
606int mmc_read_sectors(IF_MD2(int drive,) 606int mmc_read_sectors(IF_MD(int drive,)
607 unsigned long start, 607 unsigned long start,
608 int incount, 608 int incount,
609 void* inbuf) 609 void* inbuf)
@@ -689,7 +689,7 @@ int mmc_read_sectors(IF_MD2(int drive,)
689 return rc; 689 return rc;
690} 690}
691 691
692int mmc_write_sectors(IF_MD2(int drive,) 692int mmc_write_sectors(IF_MD(int drive,)
693 unsigned long start, 693 unsigned long start,
694 int count, 694 int count,
695 const void* buf) 695 const void* buf)
@@ -953,7 +953,7 @@ long mmc_last_disk_activity(void)
953} 953}
954 954
955#ifdef STORAGE_GET_INFO 955#ifdef STORAGE_GET_INFO
956void mmc_get_info(IF_MD2(int drive,) struct storage_info *info) 956void mmc_get_info(IF_MD(int drive,) struct storage_info *info)
957{ 957{
958#ifndef HAVE_MULTIDRIVE 958#ifndef HAVE_MULTIDRIVE
959 const int drive=0; 959 const int drive=0;