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 /include/scsi.h | |
parent | 4682c8a19b4eb69f7ad51df3f543375583ce878a (diff) |
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 'include/scsi.h')
-rw-r--r-- | include/scsi.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/scsi.h b/include/scsi.h index af07dbe6dbc..20f6932602b 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -199,10 +199,12 @@ void scsi_init(void); int scsi_exec(struct udevice *dev, struct scsi_cmd *pccb); int scsi_bus_reset(struct udevice *dev); -/*************************************************************************** - * functions residing inside cmd_scsi.c +/** + * scsi_scan() - Scan all SCSI controllers for available devices + * + * @vebose: true to show information about each device found */ -int scsi_scan(int mode); +int scsi_scan(bool verbose); #define SCSI_IDENTIFY 0xC0 /* not used */ |