]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: typec: tcpm: fusb302: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:56:13 +0000 (12:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Jun 2019 13:40:19 +0000 (15:40 +0200)
commit4c06a42e826d5bb24408c528aba2c13528225071
treecbd2e0049cbeb05e715123f929782034d504a892
parent812086d362a1d589d2b2e10957254ac13e83522b
usb: typec: tcpm: fusb302: simplify getting the adapter of a client

We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/fusb302.c