diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-08-17 12:18:22 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-08-17 12:18:22 -0400 |
commit | a56f1ca1ed63b93eb61fd5319f47347b3eb1e364 (patch) | |
tree | 62a253ba44b23c1867cef59fee40b40092719ee1 /firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c | |
parent | c13f21a4d5c27c638c9f0dedf6d7b1f9bbb4d682 (diff) | |
download | rockbox-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/arm/s5l8702/ipod6g/storage_ata-ipod6g.c')
-rw-r--r-- | firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c b/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c index dbf0ce9dd4..395c0f49e6 100644 --- a/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c +++ b/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c | |||
@@ -962,7 +962,7 @@ int ata_soft_reset(void) | |||
962 | return rc; | 962 | return rc; |
963 | } | 963 | } |
964 | 964 | ||
965 | int ata_read_sectors(IF_MD2(int drive,) unsigned long start, int incount, | 965 | int ata_read_sectors(IF_MD(int drive,) unsigned long start, int incount, |
966 | void* inbuf) | 966 | void* inbuf) |
967 | { | 967 | { |
968 | mutex_lock(&ata_mutex); | 968 | mutex_lock(&ata_mutex); |
@@ -971,7 +971,7 @@ int ata_read_sectors(IF_MD2(int drive,) unsigned long start, int incount, | |||
971 | return rc; | 971 | return rc; |
972 | } | 972 | } |
973 | 973 | ||
974 | int ata_write_sectors(IF_MD2(int drive,) unsigned long start, int count, | 974 | int ata_write_sectors(IF_MD(int drive,) unsigned long start, int count, |
975 | const void* outbuf) | 975 | const void* outbuf) |
976 | { | 976 | { |
977 | mutex_lock(&ata_mutex); | 977 | mutex_lock(&ata_mutex); |
@@ -1007,7 +1007,7 @@ void ata_spin(void) | |||
1007 | ata_set_active(); | 1007 | ata_set_active(); |
1008 | } | 1008 | } |
1009 | 1009 | ||
1010 | void ata_get_info(IF_MD2(int drive,) struct storage_info *info) | 1010 | void ata_get_info(IF_MD(int drive,) struct storage_info *info) |
1011 | { | 1011 | { |
1012 | (*info).sector_size = SECTOR_SIZE; | 1012 | (*info).sector_size = SECTOR_SIZE; |
1013 | #ifdef ATA_HAVE_BBT | 1013 | #ifdef ATA_HAVE_BBT |