diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-13 23:05:04 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:19:29 -0500 |
commit | a64d01dcf8440846f3077a436344f99313c1396c (patch) | |
tree | 61314895c20912f3682c0999d474e9defe26663b /drivers/scsi/device_handler | |
parent | cd37743fc978a14fee75a4e662582e15d16038a3 (diff) |
scsi: remove struct scsi_dh_devlist
All drivers now do their own matching, so there is no more need to expose
a device list as part of the interface.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi/device_handler')
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_emc.c | 6 | ||||
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_hp_sw.c | 6 | ||||
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_rdac.c | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_emc.c b/drivers/scsi/device_handler/scsi_dh_emc.c index c2e26cdef21a..800deb75a111 100644 --- a/drivers/scsi/device_handler/scsi_dh_emc.c +++ b/drivers/scsi/device_handler/scsi_dh_emc.c | |||
@@ -622,7 +622,10 @@ done: | |||
622 | return result; | 622 | return result; |
623 | } | 623 | } |
624 | 624 | ||
625 | static const struct scsi_dh_devlist clariion_dev_list[] = { | 625 | static const struct { |
626 | char *vendor; | ||
627 | char *model; | ||
628 | } clariion_dev_list[] = { | ||
626 | {"DGC", "RAID"}, | 629 | {"DGC", "RAID"}, |
627 | {"DGC", "DISK"}, | 630 | {"DGC", "DISK"}, |
628 | {"DGC", "VRAID"}, | 631 | {"DGC", "VRAID"}, |
@@ -653,7 +656,6 @@ static void clariion_bus_detach(struct scsi_device *sdev); | |||
653 | static struct scsi_device_handler clariion_dh = { | 656 | static struct scsi_device_handler clariion_dh = { |
654 | .name = CLARIION_NAME, | 657 | .name = CLARIION_NAME, |
655 | .module = THIS_MODULE, | 658 | .module = THIS_MODULE, |
656 | .devlist = clariion_dev_list, | ||
657 | .attach = clariion_bus_attach, | 659 | .attach = clariion_bus_attach, |
658 | .detach = clariion_bus_detach, | 660 | .detach = clariion_bus_detach, |
659 | .check_sense = clariion_check_sense, | 661 | .check_sense = clariion_check_sense, |
diff --git a/drivers/scsi/device_handler/scsi_dh_hp_sw.c b/drivers/scsi/device_handler/scsi_dh_hp_sw.c index 37dedcae0aa4..471ffd19f2c5 100644 --- a/drivers/scsi/device_handler/scsi_dh_hp_sw.c +++ b/drivers/scsi/device_handler/scsi_dh_hp_sw.c | |||
@@ -311,7 +311,10 @@ static int hp_sw_activate(struct scsi_device *sdev, | |||
311 | return 0; | 311 | return 0; |
312 | } | 312 | } |
313 | 313 | ||
314 | static const struct scsi_dh_devlist hp_sw_dh_data_list[] = { | 314 | static const struct { |
315 | char *vendor; | ||
316 | char *model; | ||
317 | } hp_sw_dh_data_list[] = { | ||
315 | {"COMPAQ", "MSA1000 VOLUME"}, | 318 | {"COMPAQ", "MSA1000 VOLUME"}, |
316 | {"COMPAQ", "HSV110"}, | 319 | {"COMPAQ", "HSV110"}, |
317 | {"HP", "HSV100"}, | 320 | {"HP", "HSV100"}, |
@@ -343,7 +346,6 @@ static void hp_sw_bus_detach(struct scsi_device *sdev); | |||
343 | static struct scsi_device_handler hp_sw_dh = { | 346 | static struct scsi_device_handler hp_sw_dh = { |
344 | .name = HP_SW_NAME, | 347 | .name = HP_SW_NAME, |
345 | .module = THIS_MODULE, | 348 | .module = THIS_MODULE, |
346 | .devlist = hp_sw_dh_data_list, | ||
347 | .attach = hp_sw_bus_attach, | 349 | .attach = hp_sw_bus_attach, |
348 | .detach = hp_sw_bus_detach, | 350 | .detach = hp_sw_bus_detach, |
349 | .activate = hp_sw_activate, | 351 | .activate = hp_sw_activate, |
diff --git a/drivers/scsi/device_handler/scsi_dh_rdac.c b/drivers/scsi/device_handler/scsi_dh_rdac.c index ef8caaaad76f..8b09528613d2 100644 --- a/drivers/scsi/device_handler/scsi_dh_rdac.c +++ b/drivers/scsi/device_handler/scsi_dh_rdac.c | |||
@@ -778,7 +778,10 @@ static int rdac_check_sense(struct scsi_device *sdev, | |||
778 | return SCSI_RETURN_NOT_HANDLED; | 778 | return SCSI_RETURN_NOT_HANDLED; |
779 | } | 779 | } |
780 | 780 | ||
781 | static const struct scsi_dh_devlist rdac_dev_list[] = { | 781 | static const struct { |
782 | char *vendor; | ||
783 | char *model; | ||
784 | } rdac_dev_list[] = { | ||
782 | {"IBM", "1722"}, | 785 | {"IBM", "1722"}, |
783 | {"IBM", "1724"}, | 786 | {"IBM", "1724"}, |
784 | {"IBM", "1726"}, | 787 | {"IBM", "1726"}, |
@@ -830,7 +833,6 @@ static void rdac_bus_detach(struct scsi_device *sdev); | |||
830 | static struct scsi_device_handler rdac_dh = { | 833 | static struct scsi_device_handler rdac_dh = { |
831 | .name = RDAC_NAME, | 834 | .name = RDAC_NAME, |
832 | .module = THIS_MODULE, | 835 | .module = THIS_MODULE, |
833 | .devlist = rdac_dev_list, | ||
834 | .prep_fn = rdac_prep_fn, | 836 | .prep_fn = rdac_prep_fn, |
835 | .check_sense = rdac_check_sense, | 837 | .check_sense = rdac_check_sense, |
836 | .attach = rdac_bus_attach, | 838 | .attach = rdac_bus_attach, |