summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ata-nand-telechips.c
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/arm/ata-nand-telechips.c
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/arm/ata-nand-telechips.c')
-rw-r--r--firmware/target/arm/ata-nand-telechips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/ata-nand-telechips.c b/firmware/target/arm/ata-nand-telechips.c
index 2ae425f4c6..fe1314d35a 100644
--- a/firmware/target/arm/ata-nand-telechips.c
+++ b/firmware/target/arm/ata-nand-telechips.c
@@ -800,7 +800,7 @@ static void read_inplace_writes_cache(int bank, int phys_segment)
800} 800}
801 801
802 802
803int nand_read_sectors(IF_MD2(int drive,) unsigned long start, int incount, 803int nand_read_sectors(IF_MD(int drive,) unsigned long start, int incount,
804 void* inbuf) 804 void* inbuf)
805{ 805{
806#ifdef HAVE_MULTIDRIVE 806#ifdef HAVE_MULTIDRIVE
@@ -855,7 +855,7 @@ nand_read_error:
855 return ret; 855 return ret;
856} 856}
857 857
858int nand_write_sectors(IF_MD2(int drive,) unsigned long start, int count, 858int nand_write_sectors(IF_MD(int drive,) unsigned long start, int count,
859 const void* outbuf) 859 const void* outbuf)
860{ 860{
861#ifdef HAVE_MULTIDRIVE 861#ifdef HAVE_MULTIDRIVE
@@ -877,7 +877,7 @@ int nand_flush(void)
877#endif 877#endif
878 878
879#ifdef STORAGE_GET_INFO 879#ifdef STORAGE_GET_INFO
880void nand_get_info(IF_MD2(int drive,) struct storage_info *info) 880void nand_get_info(IF_MD(int drive,) struct storage_info *info)
881{ 881{
882#ifdef HAVE_MULTIDRIVE 882#ifdef HAVE_MULTIDRIVE
883 (void)drive; /* unused for now */ 883 (void)drive; /* unused for now */