thunderbolt: Generalize usb4_switch_do_[read|write]_data()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 14 Feb 2020 17:23:03 +0000 (19:23 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 Jun 2020 16:58:32 +0000 (19:58 +0300)
commit7e72846bb97a86d19a249d230b12a6e33e947026
treef94834b91963c8f940868ad74cbb5a54979f8982
parent719a5fe87ecd71d140c3ef76d855c70f82893411
thunderbolt: Generalize usb4_switch_do_[read|write]_data()

Currently these functions operate on struct tb_switch but we are going
to need the same functionality with retimers as well so make the two
functions work with an arbitrary object that gets passed as parameter to
the callbacks.

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