summaryrefslogtreecommitdiff
path: root/api/api_storage.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-02-09 09:29:07 -0500
committerTom Rini <trini@konsulko.com>2022-02-09 09:29:07 -0500
commit859703251251d9567f29ab10c0a29f98eb0aff5c (patch)
treee0863f7cced9c153b8b083575d52faec05fae8d7 /api/api_storage.c
parent531c00894577a0a852431adf61ade76925f8b162 (diff)
parentcccc4ab86f5e64ea6fe1e79b3ca2453baa049120 (diff)
Merge branch '2022-02-08-Kconfig-updates'
- Assorted general code cleanups to make sure we use the right macros and use them correctly and buildman updates around kconfig.h itself. - Convert some IDE and SCSI symbols to Kconfig. - Convert CONFIG_REMAKE_ELF - Introduce conversion deadline for DM_SCSI.
Diffstat (limited to 'api/api_storage.c')
-rw-r--r--api/api_storage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/api_storage.c b/api/api_storage.c
index a0dacad1a55..adca44b4fd2 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <api_public.h>
#include <part.h>
+#include <scsi.h>
#if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
#include <usb.h>
@@ -71,7 +72,7 @@ void dev_stor_init(void)
specs[ENUM_SATA].name = "sata";
#endif
#if defined(CONFIG_SCSI)
- specs[ENUM_SCSI].max_dev = CONFIG_SYS_SCSI_MAX_DEVICE;
+ specs[ENUM_SCSI].max_dev = SCSI_MAX_DEVICE;
specs[ENUM_SCSI].enum_started = 0;
specs[ENUM_SCSI].enum_ended = 0;
specs[ENUM_SCSI].type = DEV_TYP_STOR | DT_STOR_SCSI;