linux/drivers/thunderbolt
Mika Westerberg b5db76dba0 thunderbolt: Refactor add_switch() into two functions
Currently add_switch() takes a huge amount of parameters that makes it
hard to maintain. Instead of passing all those parameters we can split
the function into two parts (alloc and add) and fill the additional
switch fields directly in the functions calling those.

While there remove redundant error logging in case kmemdup() fails.

No functional changes.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
2019-11-01 14:32:00 +03:00
..
cap.c thunderbolt: Add dummy read after port capability list walk on Light Ridge 2019-04-18 11:18:51 +03:00
ctl.c thunderbolt: Log switch route string on config read/write timeout 2019-11-01 14:31:59 +03:00
ctl.h thunderbolt: Add Intel as copyright holder 2018-10-02 15:52:08 -07:00
dma_port.c thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
dma_port.h thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
domain.c crypto: shash - remove shash_desc::flags 2019-04-25 15:38:12 +08:00
eeprom.c thunderbolt: Do not fail adding switch if some port is not implemented 2019-08-26 12:14:51 +03:00
icm.c thunderbolt: Refactor add_switch() into two functions 2019-11-01 14:32:00 +03:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
lc.c thunderbolt: Introduce tb_switch_is_icm() 2019-11-01 14:31:59 +03:00
Makefile thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
nhi_ops.c thunderbolt: Drop unnecessary read when writing LC command in Ice Lake 2019-10-08 12:08:21 +03:00
nhi_regs.h thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
nhi.c thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
nhi.h thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
path.c thunderbolt: Reword output of tb_dump_hop() 2019-04-18 11:18:54 +03:00
property.c thunderbolt: property: Fix a missing check of kzalloc 2019-03-28 11:30:47 +03:00
switch.c thunderbolt: Add helper macro to iterate over switch ports 2019-11-01 14:32:00 +03:00
tb_msgs.h thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
tb_regs.h thunderbolt: Convert DP adapter register names to follow the USB4 spec 2019-11-01 14:32:00 +03:00
tb.c thunderbolt: Add helper macro to iterate over switch ports 2019-11-01 14:32:00 +03:00
tb.h thunderbolt: Add helper macro to iterate over switch ports 2019-11-01 14:32:00 +03:00
tunnel.c thunderbolt: Convert DP adapter register names to follow the USB4 spec 2019-11-01 14:32:00 +03:00
tunnel.h thunderbolt: Add support for DMA tunnels 2019-04-18 11:18:53 +03:00
xdomain.c thunderbolt: Add helper macro to iterate over switch ports 2019-11-01 14:32:00 +03:00