diff options
Diffstat (limited to 'include/scsi/scsi_transport_sas.h')
-rw-r--r-- | include/scsi/scsi_transport_sas.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h index 42817facaeda..98b3a20a0102 100644 --- a/include/scsi/scsi_transport_sas.h +++ b/include/scsi/scsi_transport_sas.h | |||
@@ -209,6 +209,12 @@ void sas_port_add_phy(struct sas_port *, struct sas_phy *); | |||
209 | void sas_port_delete_phy(struct sas_port *, struct sas_phy *); | 209 | void sas_port_delete_phy(struct sas_port *, struct sas_phy *); |
210 | void sas_port_mark_backlink(struct sas_port *); | 210 | void sas_port_mark_backlink(struct sas_port *); |
211 | int scsi_is_sas_port(const struct device *); | 211 | int scsi_is_sas_port(const struct device *); |
212 | struct sas_phy *sas_port_get_phy(struct sas_port *port); | ||
213 | static inline void sas_port_put_phy(struct sas_phy *phy) | ||
214 | { | ||
215 | if (phy) | ||
216 | put_device(&phy->dev); | ||
217 | } | ||
212 | 218 | ||
213 | extern struct scsi_transport_template * | 219 | extern struct scsi_transport_template * |
214 | sas_attach_transport(struct sas_function_template *); | 220 | sas_attach_transport(struct sas_function_template *); |