thunderbolt: Use kobj_to_dev() instead of container_of()
authorTian Tao <tiantao6@hisilicon.com>
Tue, 1 Sep 2020 08:27:17 +0000 (16:27 +0800)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Sep 2020 09:06:08 +0000 (12:06 +0300)
commitfff15f23b8e74c2f969a5d25f29d0565e76e7137
treed8dad6164a2865ed2ecd21f2f507b1a322331e75
parentf75aef392f869018f78cfedf3c320a6b3fcfda6b
thunderbolt: Use kobj_to_dev() instead of container_of()

Doesn't really matter for an individual driver, but it may
get coppied to lots more. I consider it's a little tidy up.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/domain.c
drivers/thunderbolt/switch.c