* [PATCH] Documentation: fix documentation of scsi_add_device()
@ 2010-07-07 13:35 Kleber Sacilotto de Souza
0 siblings, 0 replies; only message in thread
From: Kleber Sacilotto de Souza @ 2010-07-07 13:35 UTC (permalink / raw)
To: linux-scsi; +Cc: Kleber Sacilotto de Souza
This patch fixes the documentation of the parameters and return value of
scsi_add_device().
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
---
Documentation/scsi/scsi_mid_low_api.txt | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/Documentation/scsi/scsi_mid_low_api.txt b/Documentation/scsi/scsi_mid_low_api.txt
index de67229..e53fbf2 100644
--- a/Documentation/scsi/scsi_mid_low_api.txt
+++ b/Documentation/scsi/scsi_mid_low_api.txt
@@ -416,12 +416,10 @@ void scsi_activate_tcq(struct scsi_device *sdev, int depth)
* scsi_add_device - creates new scsi device (lu) instance
* @shost: pointer to scsi host instance
* @channel: channel number (rarely other than 0)
- * @id: target id number
+ * @target: target number
* @lun: logical unit number
*
- * Returns pointer to new struct scsi_device instance or
- * ERR_PTR(-ENODEV) (or some other bent pointer) if something is
- * wrong (e.g. no lu responds at given address)
+ * Returns 0 on success, negative errno on failure (e.g. -ENODEV)
*
* Might block: yes
*
@@ -434,9 +432,8 @@ void scsi_activate_tcq(struct scsi_device *sdev, int depth)
*
* Defined in: drivers/scsi/scsi_scan.c
**/
-struct scsi_device * scsi_add_device(struct Scsi_Host *shost,
- unsigned int channel,
- unsigned int id, unsigned int lun)
+int scsi_add_device(struct Scsi_Host *host, uint channel,
+ uint target, uint lun)
/**
--
1.7.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-07 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-07 13:35 [PATCH] Documentation: fix documentation of scsi_add_device() Kleber Sacilotto de Souza
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).