diff options
author | Prashant Malani <pmalani@chromium.org> | 2023-01-13 01:16:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-17 19:29:00 +0300 |
commit | 6681e43f5095a64bc3e37822f64d91d284a062dc (patch) | |
tree | e05dcea5cf16ae3ed9b8644958cc32d57dabec4d /drivers/usb/typec/retimer.h | |
parent | 2c8cb236ed44d071ef2ed1fbb948eea404551788 (diff) | |
download | linux-6681e43f5095a64bc3e37822f64d91d284a062dc.tar.xz |
usb: typec: Make bus switch code retimer-aware
Since ports can have retimers associated with them, update the Type-C
alternate mode bus code to also set retimer state when the switch state
is updated.
While we are here, make the typec_retimer_dev_type declaration in the
retimer.h file as extern, so that the header file can be successfully
included in the bus code without redeclaration compilation errors.
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230112221609.540754-4-pmalani@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec/retimer.h')
-rw-r--r-- | drivers/usb/typec/retimer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/retimer.h b/drivers/usb/typec/retimer.h index e34bd23323be..d6a5ef9881e1 100644 --- a/drivers/usb/typec/retimer.h +++ b/drivers/usb/typec/retimer.h @@ -12,7 +12,7 @@ struct typec_retimer { #define to_typec_retimer(_dev_) container_of(_dev_, struct typec_retimer, dev) -const struct device_type typec_retimer_dev_type; +extern const struct device_type typec_retimer_dev_type; #define is_typec_retimer(dev) ((dev)->type == &typec_retimer_dev_type) |