diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-04-22 15:23:48 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-26 13:47:13 +0200 |
commit | 713fd49b430c37263c6cae2c82954f4e1cbcd90d (patch) | |
tree | 87ea759a2ac0a4754183732479d974574d717819 /drivers/usb/typec/bus.c | |
parent | b9fa0292490db39d6542f514117333d366ec0011 (diff) | |
download | linux-713fd49b430c37263c6cae2c82954f4e1cbcd90d.tar.gz linux-713fd49b430c37263c6cae2c82954f4e1cbcd90d.tar.bz2 linux-713fd49b430c37263c6cae2c82954f4e1cbcd90d.zip |
usb: typec: mux: Introduce indirection
Rather than directly exposing the implementation's representation of the
typec muxes to the controller/clients, introduce an indirection object.
This enables the introduction of turning this relationship into a
one-to-many in the following patch.
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220422222351.1297276-5-bjorn.andersson@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec/bus.c')
-rw-r--r-- | drivers/usb/typec/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/bus.c b/drivers/usb/typec/bus.c index 78e0e78954f2..26ea2fdec17d 100644 --- a/drivers/usb/typec/bus.c +++ b/drivers/usb/typec/bus.c @@ -24,7 +24,7 @@ typec_altmode_set_mux(struct altmode *alt, unsigned long conf, void *data) state.mode = conf; state.data = data; - return alt->mux->set(alt->mux, &state); + return typec_mux_set(alt->mux, &state); } static int typec_altmode_set_state(struct typec_altmode *adev, |