diff options
| author | Simon Glass <[email protected]> | 2022-01-31 07:49:36 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-02-09 09:16:48 -0500 |
| commit | ce30e3ff1e4b5abff5a9936776fe99190d705236 (patch) | |
| tree | adf8ee799bdea7ef7cfaaa56a97c320aa38e92a9 /api | |
| parent | f73a75618224b7e65a3e8a25b0b115bb1bee681b (diff) | |
scsi: Drop CONFIG_SYS_SCSI_MAX_DEVICE
This is defined based on two other CONFIGs for all boards except sandbox
and durian.
For sandbox the value does not matter. For durian the value seems
excessive.
Drop the option completely, to simplify configuration and reduce the
number of things we need to convert to Kconfig.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'api')
| -rw-r--r-- | api/api_storage.c | 3 |
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; |
