thunderbolt: Cache adapter specific capability offset into struct port
authorMika Westerberg <mika.westerberg@linux.intel.com>
Sun, 19 Feb 2017 08:39:34 +0000 (10:39 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Apr 2019 08:18:52 +0000 (11:18 +0300)
commit56183c88f368eef7134c32df826792ee140f2864
tree366f801681636db72181ee1fdbd10a9cdbbd1c22
parent4944269305df09c719f9c406c20c255f1724542a
thunderbolt: Cache adapter specific capability offset into struct port

The adapter specific capability either is there or not if the port does
not hold an adapter. Instead of always finding it on-demand we read the
offset just once when the port is initialized.

While there we update the struct port documentation to follow kernel-doc
format.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/tunnel_pci.c