]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scsi: move the writeable field from struct scsi_device to struct scsi_cd
authorChristoph Hellwig <hch@lst.de>
Fri, 18 Jul 2014 14:59:19 +0000 (16:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:16:41 +0000 (17:16 -0400)
commitfd2eb9034e48cdca358dc06a833a736e7c6f68dd
tree18366ad7112141752ca2ab95ec7fd07a9a23f9a3
parent7a14c1c3319608154da8712e4174d56ffb2f7b8d
scsi: move the writeable field from struct scsi_device to struct scsi_cd

We currently set the field in common code based on the device type,
but then only use it in the cdrom driver which also overrides the
value previously set in the generic code.

Just leave this entirely to the CDROM driver to make everyones life
simpler.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_scan.c
drivers/scsi/sd.c
drivers/scsi/sr.c
drivers/scsi/sr.h
include/scsi/scsi_device.h