]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: hd3ss3220: Start using struct typec_operations
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 4 Nov 2019 14:24:24 +0000 (17:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 15:03:35 +0000 (16:03 +0100)
commitfd815998950bf9fa3cffab2aa35e0d9ded2337d2
treeb0ac7dacb7e48971b00848f044105560fb00e8c6
parent216fc2dfa2e8a84e9e2549a11f578ec624d56ea6
usb: typec: hd3ss3220: Start using struct typec_operations

Supplying the operation callbacks as part of a struct
typec_operations instead of as part of struct
typec_capability during port registration. After this there
is not need to keep the capabilities stored anywhere in the
driver.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-8-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/hd3ss3220.c