scsi_scan.c (3f90ac7138edb995b4312221647b58afcc15ec06) | scsi_scan.c (517bcc2b4db435f230fe864f3db0a0f21d2f6951) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * scsi_scan.c 4 * 5 * Copyright (C) 2000 Eric Youngdale, 6 * Copyright (C) 2002 Patrick Mansfield 7 * 8 * The general scanning/probing algorithm is as follows, exceptions are --- 398 unchanged lines hidden (view full) --- 407{ 408 struct device *parent = dev->parent; 409 struct scsi_target *starget = to_scsi_target(dev); 410 411 kfree(starget); 412 put_device(parent); 413} 414 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * scsi_scan.c 4 * 5 * Copyright (C) 2000 Eric Youngdale, 6 * Copyright (C) 2002 Patrick Mansfield 7 * 8 * The general scanning/probing algorithm is as follows, exceptions are --- 398 unchanged lines hidden (view full) --- 407{ 408 struct device *parent = dev->parent; 409 struct scsi_target *starget = to_scsi_target(dev); 410 411 kfree(starget); 412 put_device(parent); 413} 414 |
415static struct device_type scsi_target_type = { | 415static const struct device_type scsi_target_type = { |
416 .name = "scsi_target", 417 .release = scsi_target_dev_release, 418}; 419 420int scsi_is_target_device(const struct device *dev) 421{ 422 return dev->type == &scsi_target_type; 423} --- 1609 unchanged lines hidden --- | 416 .name = "scsi_target", 417 .release = scsi_target_dev_release, 418}; 419 420int scsi_is_target_device(const struct device *dev) 421{ 422 return dev->type == &scsi_target_type; 423} --- 1609 unchanged lines hidden --- |