]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: Copy everything from struct typec_capability during registration
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 4 Nov 2019 14:24:18 +0000 (17:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 15:03:32 +0000 (16:03 +0100)
commitf64d58fb684f5aad5f4a4d51f4e357b32ab0ec57
tree0d1ca052478fc40365f92e95c5c380f29496ecd1
parent0df5e1001d7e0a0941b6ebbd435a34ddf34c8d2f
usb: typec: Copy everything from struct typec_capability during registration

Copying everything from struct typec_capability to struct
typec_port during port registration. This will make sure
that under no circumstances the driver can change the values
in the struct typec_capability that the port uses.

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-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/class.c