]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
scsi: sd: Cleaned up comment references to @sdp argument explanation.
authorJohn Pittman <jpittman@redhat.com>
Thu, 12 Jan 2017 21:17:20 +0000 (16:17 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Jan 2017 21:59:03 +0000 (16:59 -0500)
In sd.c there are two comment references to 'struct scsi_device *sdp' as
an argument.  One of the references has a typo and the other should be a
reference to 'struct device *dev' instead.

Fixed by correcting the typo in the first and changing the explanation
in the second.

Signed-off-by: John Pittman <jpittman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c

index b1933041da39d414f9c6e127052ba8cbaa25e65e..52105d8bce5b23e8b3686ef4b3b2494ce00fa499 100644 (file)
@@ -703,7 +703,7 @@ static void sd_config_discard(struct scsi_disk *sdkp, unsigned int mode)
 
 /**
  * sd_setup_discard_cmnd - unmap blocks on thinly provisioned device
- * @sdp: scsi device to operate one
+ * @sdp: scsi device to operate on
  * @rq: Request to prepare
  *
  * Will issue either UNMAP or WRITE SAME(16) depending on preference
@@ -3192,7 +3192,7 @@ static int sd_probe(struct device *dev)
  *     sd_remove - called whenever a scsi disk (previously recognized by
  *     sd_probe) is detached from the system. It is called (potentially
  *     multiple times) during sd module unload.
- *     @sdp: pointer to mid level scsi device object
+ *     @dev: pointer to device object
  *
  *     Note: this function is invoked from the scsi mid-level.
  *     This function potentially frees up a device name (e.g. /dev/sdc)