mux: add missing mux_state_get
authorPeter Rosin <peda@axentia.se>
Fri, 7 Jan 2022 07:44:32 +0000 (08:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Feb 2022 14:47:11 +0000 (15:47 +0100)
commit6632866df852bd0907f67ff7db5cbdb448f6ae16
treeca92310767dd973d6363febefe1eae8d5666af9a
parent84564481bc4520c47e7fe9c594c0523d81e6a97a
mux: add missing mux_state_get

And implement devm_mux_state_get in terms of the new function.

Now we have both mux_state_get and mux_state_put as convenient functions
ready to be exported should someone ever need unmanaged interfaces.

Tested-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
Link: https://lore.kernel.org/r/6f8cfdfd-9fa6-40d1-09b3-0c9fc50835ac@axentia.se
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mux/core.c