diff options
author | Simon Glass <sjg@chromium.org> | 2021-11-24 09:26:40 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-12-05 09:23:15 -0700 |
commit | 32c8566f138d4685c60c83fa89cf4bb0b7b00e79 (patch) | |
tree | 656b3ce23f7595748d3f96ecd297cee91351f569 /drivers/block/sandbox.c | |
parent | 89050244c40e79fc24b24ee84e4e668a6dfc336d (diff) | |
download | u-boot-32c8566f138d4685c60c83fa89cf4bb0b7b00e79.tar.gz |
sandbox: Drop CONFIG_HOST_MAX_DEVICES
This can go in the related header file. Drop the CONFIG option.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/block/sandbox.c')
-rw-r--r-- | drivers/block/sandbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index 1c2c3b4f88..53925ce9b6 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -19,11 +19,11 @@ DECLARE_GLOBAL_DATA_PTR; #ifndef CONFIG_BLK -static struct host_block_dev host_devices[CONFIG_HOST_MAX_DEVICES]; +static struct host_block_dev host_devices[SANDBOX_HOST_MAX_DEVICES]; static struct host_block_dev *find_host_device(int dev) { - if (dev >= 0 && dev < CONFIG_HOST_MAX_DEVICES) + if (dev >= 0 && dev < SANDBOX_HOST_MAX_DEVICES) return &host_devices[dev]; return NULL; @@ -259,7 +259,7 @@ U_BOOT_DRIVER(sandbox_host_blk) = { U_BOOT_LEGACY_BLK(sandbox_host) = { .if_typename = "host", .if_type = IF_TYPE_HOST, - .max_devs = CONFIG_HOST_MAX_DEVICES, + .max_devs = SANDBOX_HOST_MAX_DEVICES, .get_dev = host_get_dev_err, }; #endif |