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/export/ata.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/export/ata.h') diff --git a/firmware/export/ata.h b/firmware/export/ata.h index 41a2fd5c9f..0bcb144e63 100644 --- a/firmware/export/ata.h +++ b/firmware/export/ata.h @@ -39,8 +39,8 @@ bool ata_disk_is_active(void); int ata_soft_reset(void); int ata_init(void) STORAGE_INIT_ATTR; void ata_close(void); -int ata_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* buf); -int ata_write_sectors(IF_MD2(int drive,) unsigned long start, int count, const void* buf); +int ata_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* buf); +int ata_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf); void ata_spin(void); #if (CONFIG_LED == LED_REAL) void ata_set_led_enabled(bool enabled); @@ -48,7 +48,7 @@ void ata_set_led_enabled(bool enabled); unsigned short* ata_get_identify(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); #endif #ifdef HAVE_HOTSWAP bool ata_removable(IF_MD_NONVOID(int drive)); -- cgit v1.2.3