aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD2008-01-25 00:54:47 -0600
committerWolfgang Denk2008-02-13 18:11:00 -0600
commit1b769881750030f10743808b9d6013e11f559350 (patch)
treee0dd6eff6a904307be295c1c9f5a900fde589096 /api
parent0c9d42e6b0b83d507335a291e3ea99240038f4b9 (diff)
downloadu-boot-1b769881750030f10743808b9d6013e11f559350.tar.gz
u-boot-1b769881750030f10743808b9d6013e11f559350.tar.xz
u-boot-1b769881750030f10743808b9d6013e11f559350.zip
Fix remaining CONFIG_COMMANDS
update comments Fix coding style Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'api')
-rw-r--r--api/api_storage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/api_storage.c b/api/api_storage.c
index 7cd4efb45b..7e6324044d 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -61,21 +61,21 @@ static struct stor_spec specs[ENUM_MAX] = { { 0, 0, 0, 0, "" }, };
61 61
62void dev_stor_init(void) 62void dev_stor_init(void)
63{ 63{
64#if (CONFIG_COMMANDS & CFG_CMD_IDE) 64#if defined(CONFIG_CMD_IDE)
65 specs[ENUM_IDE].max_dev = CFG_IDE_MAXDEVICE; 65 specs[ENUM_IDE].max_dev = CFG_IDE_MAXDEVICE;
66 specs[ENUM_IDE].enum_started = 0; 66 specs[ENUM_IDE].enum_started = 0;
67 specs[ENUM_IDE].enum_ended = 0; 67 specs[ENUM_IDE].enum_ended = 0;
68 specs[ENUM_IDE].type = DEV_TYP_STOR | DT_STOR_IDE; 68 specs[ENUM_IDE].type = DEV_TYP_STOR | DT_STOR_IDE;
69 specs[ENUM_IDE].name = "ide"; 69 specs[ENUM_IDE].name = "ide";
70#endif 70#endif
71#if (CONFIG_COMMANDS & CFG_CMD_USB) 71#if defined(CONFIG_CMD_USB)
72 specs[ENUM_USB].max_dev = USB_MAX_STOR_DEV; 72 specs[ENUM_USB].max_dev = USB_MAX_STOR_DEV;
73 specs[ENUM_USB].enum_started = 0; 73 specs[ENUM_USB].enum_started = 0;
74 specs[ENUM_USB].enum_ended = 0; 74 specs[ENUM_USB].enum_ended = 0;
75 specs[ENUM_USB].type = DEV_TYP_STOR | DT_STOR_USB; 75 specs[ENUM_USB].type = DEV_TYP_STOR | DT_STOR_USB;
76 specs[ENUM_USB].name = "usb"; 76 specs[ENUM_USB].name = "usb";
77#endif 77#endif
78#if (CONFIG_COMMANDS & CFG_CMD_SCSI) 78#if defined(CONFIG_CMD_SCSI)
79 specs[ENUM_SCSI].max_dev = CFG_SCSI_MAX_DEVICE; 79 specs[ENUM_SCSI].max_dev = CFG_SCSI_MAX_DEVICE;
80 specs[ENUM_SCSI].enum_started = 0; 80 specs[ENUM_SCSI].enum_started = 0;
81 specs[ENUM_SCSI].enum_ended = 0; 81 specs[ENUM_SCSI].enum_ended = 0;