summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tb.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r--drivers/thunderbolt/tb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index 5b5ba8919086..260360ec59a9 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -350,6 +350,11 @@ static inline bool tb_port_has_remote(const struct tb_port *port)
350 return true; 350 return true;
351} 351}
352 352
353static inline bool tb_port_is_null(const struct tb_port *port)
354{
355 return port && port->port && port->config.type == TB_TYPE_PORT;
356}
357
353static inline bool tb_port_is_pcie_down(const struct tb_port *port) 358static inline bool tb_port_is_pcie_down(const struct tb_port *port)
354{ 359{
355 return port && port->config.type == TB_TYPE_PCIE_DOWN; 360 return port && port->config.type == TB_TYPE_PCIE_DOWN;