From a56f1ca1ed63b93eb61fd5319f47347b3eb1e364 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 17 Aug 2013 12:18:22 -0400 Subject: 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 --- firmware/drivers/ata.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'firmware/drivers/ata.c') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index ec04ac1426..4b365a50ab 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -567,7 +567,7 @@ static int ata_transfer_sectors(unsigned long start, } #ifndef MAX_PHYS_SECTOR_SIZE -int ata_read_sectors(IF_MD2(int drive,) +int ata_read_sectors(IF_MD(int drive,) unsigned long start, int incount, void* inbuf) @@ -581,7 +581,7 @@ int ata_read_sectors(IF_MD2(int drive,) #endif #ifndef MAX_PHYS_SECTOR_SIZE -int ata_write_sectors(IF_MD2(int drive,) +int ata_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf) @@ -623,7 +623,7 @@ static inline int flush_current_sector(void) sector_cache.data, true); } -int ata_read_sectors(IF_MD2(int drive,) +int ata_read_sectors(IF_MD(int drive,) unsigned long start, int incount, void* inbuf) @@ -689,7 +689,7 @@ int ata_read_sectors(IF_MD2(int drive,) return rc; } -int ata_write_sectors(IF_MD2(int drive,) +int ata_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf) @@ -1480,7 +1480,7 @@ int ata_spinup_time(void) } #ifdef STORAGE_GET_INFO -void ata_get_info(IF_MD2(int drive,)struct storage_info *info) +void ata_get_info(IF_MD(int drive,)struct storage_info *info) { unsigned short *src,*dest; static char vendor[8]; -- cgit v1.2.3