diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-10-07 10:55:53 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-11-06 23:55:44 -0500 |
commit | 6f23ac8a39418d6c6711f4fd73cc4519067d7f08 (patch) | |
tree | d6975dda37b047b6f9c3f5cf74cc4206a32a9e3a /drivers/target/target_core_rd.c | |
parent | 8de530a523fd3cc46b5d8d96f3016298c5c808ac (diff) |
target: provide generic sbc device type/revision helpers
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_rd.c')
-rw-r--r-- | drivers/target/target_core_rd.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/target/target_core_rd.c b/drivers/target/target_core_rd.c index 1b36e67b1153..6348b6672526 100644 --- a/drivers/target/target_core_rd.c +++ b/drivers/target/target_core_rd.c | |||
@@ -417,16 +417,6 @@ static ssize_t rd_show_configfs_dev_params(struct se_device *dev, char *b) | |||
417 | return bl; | 417 | return bl; |
418 | } | 418 | } |
419 | 419 | ||
420 | static u32 rd_get_device_rev(struct se_device *dev) | ||
421 | { | ||
422 | return SCSI_SPC_2; /* Returns SPC-3 in Initiator Data */ | ||
423 | } | ||
424 | |||
425 | static u32 rd_get_device_type(struct se_device *dev) | ||
426 | { | ||
427 | return TYPE_DISK; | ||
428 | } | ||
429 | |||
430 | static sector_t rd_get_blocks(struct se_device *dev) | 420 | static sector_t rd_get_blocks(struct se_device *dev) |
431 | { | 421 | { |
432 | struct rd_dev *rd_dev = RD_DEV(dev); | 422 | struct rd_dev *rd_dev = RD_DEV(dev); |
@@ -459,8 +449,8 @@ static struct se_subsystem_api rd_mcp_template = { | |||
459 | .parse_cdb = rd_parse_cdb, | 449 | .parse_cdb = rd_parse_cdb, |
460 | .set_configfs_dev_params = rd_set_configfs_dev_params, | 450 | .set_configfs_dev_params = rd_set_configfs_dev_params, |
461 | .show_configfs_dev_params = rd_show_configfs_dev_params, | 451 | .show_configfs_dev_params = rd_show_configfs_dev_params, |
462 | .get_device_rev = rd_get_device_rev, | 452 | .get_device_rev = sbc_get_device_rev, |
463 | .get_device_type = rd_get_device_type, | 453 | .get_device_type = sbc_get_device_type, |
464 | .get_blocks = rd_get_blocks, | 454 | .get_blocks = rd_get_blocks, |
465 | }; | 455 | }; |
466 | 456 | ||