linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: doc. fixes to scsi_common.c
@ 2017-12-10 18:11 Randy Dunlap
  2017-12-11 22:24 ` Bart Van Assche
  2017-12-12  2:40 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2017-12-10 18:11 UTC (permalink / raw)
  To: linux-scsi, Martin K. Petersen, James E.J. Bottomley
  Cc: Nicholas A. Bellinger, Sagi Grimberg, Bart Van Assche

From: Randy Dunlap <rdunlap@infradead.org>

Clean up some comment typos and fix some errors in documentation.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Bart Van Assche <bart.vanassche@wdc.com>
---
 drivers/scsi/scsi_common.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

--- lnx-415-rc2.orig/drivers/scsi/scsi_common.c
+++ lnx-415-rc2/drivers/scsi/scsi_common.c
@@ -12,7 +12,7 @@
 
 /* NB: These are exposed through /proc/scsi/scsi and form part of the ABI.
  * You may not alter any existing entry (although adding new ones is
- * encouraged once assigned by ANSI/INCITS T10
+ * encouraged once assigned by ANSI/INCITS T10).
  */
 static const char *const scsi_device_types[] = {
 	"Direct-Access    ",
@@ -39,7 +39,7 @@ static const char *const scsi_device_typ
 };
 
 /**
- * scsi_device_type - Return 17 char string indicating device type.
+ * scsi_device_type - Return 17-char string indicating device type.
  * @type: type number to look up
  */
 const char *scsi_device_type(unsigned type)
@@ -59,7 +59,7 @@ EXPORT_SYMBOL(scsi_device_type);
  * @scsilun:	struct scsi_lun to be converted.
  *
  * Description:
- *     Convert @scsilun from a struct scsi_lun to a four byte host byte-ordered
+ *     Convert @scsilun from a struct scsi_lun to a four-byte host byte-ordered
  *     integer, and return the result. The caller must check for
  *     truncation before using this function.
  *
@@ -98,7 +98,7 @@ EXPORT_SYMBOL(scsilun_to_int);
  *     back into the lun value.
  *
  * Notes:
- *     Given an integer : 0x0b03d204,  this function returns a
+ *     Given an integer : 0x0b03d204, this function returns a
  *     struct scsi_lun of: d2 04 0b 03 00 00 00 00
  *
  */
@@ -221,7 +221,7 @@ EXPORT_SYMBOL(scsi_sense_desc_find);
 
 /**
  * scsi_build_sense_buffer - build sense data in a buffer
- * @desc:	Sense format (non zero == descriptor format,
+ * @desc:	Sense format (non-zero == descriptor format,
  *              0 == fixed format)
  * @buf:	Where to build sense data
  * @key:	Sense key
@@ -255,7 +255,7 @@ EXPORT_SYMBOL(scsi_build_sense_buffer);
  * @info:	64-bit information value to be set
  *
  * Return value:
- *	0 on success or EINVAL for invalid sense buffer length
+ *	0 on success or -EINVAL for invalid sense buffer length
  **/
 int scsi_set_sense_information(u8 *buf, int buf_len, u64 info)
 {
@@ -305,7 +305,7 @@ EXPORT_SYMBOL(scsi_set_sense_information
  * @cd:		command/data bit
  *
  * Return value:
- *	0 on success or EINVAL for invalid sense buffer length
+ *	0 on success or -EINVAL for invalid sense buffer length
  */
 int scsi_set_sense_field_pointer(u8 *buf, int buf_len, u16 fp, u8 bp, bool cd)
 {

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: doc. fixes to scsi_common.c
  2017-12-10 18:11 [PATCH] scsi: doc. fixes to scsi_common.c Randy Dunlap
@ 2017-12-11 22:24 ` Bart Van Assche
  2017-12-12  2:40 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Bart Van Assche @ 2017-12-11 22:24 UTC (permalink / raw)
  To: linux-scsi@vger.kernel.org, rdunlap@infradead.org,
	jejb@linux.vnet.ibm.com, martin.petersen@oracle.com
  Cc: sagig@mellanox.com, nab@linux-iscsi.org

On Sun, 2017-12-10 at 10:11 -0800, Randy Dunlap wrote:
> Clean up some comment typos and fix some errors in documentation.

Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: doc. fixes to scsi_common.c
  2017-12-10 18:11 [PATCH] scsi: doc. fixes to scsi_common.c Randy Dunlap
  2017-12-11 22:24 ` Bart Van Assche
@ 2017-12-12  2:40 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2017-12-12  2:40 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: linux-scsi, Martin K. Petersen, James E.J. Bottomley,
	Nicholas A. Bellinger, Sagi Grimberg, Bart Van Assche


Randy,

> Clean up some comment typos and fix some errors in documentation.

Applied to 4.16/scsi-queue. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-12  2:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-10 18:11 [PATCH] scsi: doc. fixes to scsi_common.c Randy Dunlap
2017-12-11 22:24 ` Bart Van Assche
2017-12-12  2:40 ` Martin K. Petersen

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).