scsi: sd: Create helper functions for read/write commands
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Jan 2019 00:50:00 +0000 (16:50 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Jan 2019 02:18:27 +0000 (21:18 -0500)
commit78a02f49d0eb978b5eb85ffdf5f11582ac83c754
tree50a241151a1ee3e1240e18ff9f1d1cab9b0b6193
parentec029758a10095c66fd24398f742c695c2e6ec2c
scsi: sd: Create helper functions for read/write commands

Create a helper function for each of the 6, 10, 16 and 32-byte READ/WRITE
variants and use those when setting up reads and writes.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
[ bvanassche: ported this patch from kernel v4.11 to kernel v5.0 and made
  function names shorter. ]
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c