diff options
author | Simon Glass <sjg@chromium.org> | 2017-06-14 21:28:41 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-11 10:08:19 -0600 |
commit | 8eab1a58dd53cbf89dca54f91cf3fbb51d714644 (patch) | |
tree | 2ec0bcfab13a2374da951e8b7339d264fd19985b /cmd | |
parent | 4682c8a19b4eb69f7ad51df3f543375583ce878a (diff) | |
download | u-boot-8eab1a58dd53cbf89dca54f91cf3fbb51d714644.zip u-boot-8eab1a58dd53cbf89dca54f91cf3fbb51d714644.tar.gz u-boot-8eab1a58dd53cbf89dca54f91cf3fbb51d714644.tar.bz2 |
dm: scsi: Document and rename the scsi_scan() parameter
The 'mode' parameter is actually a flag to determine whether to display
a list of devices found during the scan. Rename it to reflect this, add a
function comment and adjust callers to use a boolean.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ static int do_scsi(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) if (strncmp(argv[1], "res", 3) == 0) { printf("\nReset SCSI\n"); scsi_bus_reset(NULL); - ret = scsi_scan(1); + ret = scsi_scan(true); if (ret) return CMD_RET_FAILURE; return ret; @@ -55,7 +55,7 @@ static int do_scsi(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } if (strncmp(argv[1], "scan", 4) == 0) { - ret = scsi_scan(1); + ret = scsi_scan(true); if (ret) return CMD_RET_FAILURE; return ret; |