
5 Feb
2021
5 Feb
'21
5:39 a.m.
This allows code using mux_get_by_index to be agnostic about CONFIG_MUX.
Signed-off-by: Sean Anderson seanga2@gmail.com ---
include/mux.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/include/mux.h b/include/mux.h index 91a89bbb9a..882a00068b 100644 --- a/include/mux.h +++ b/include/mux.h @@ -135,6 +135,12 @@ static inline int mux_control_deselect(struct mux_control *mux) return -ENOSYS; }
+static inline int mux_get_by_index(struct udevice *dev, int index, + struct mux_control **mux) +{ + return -ENOSYS; +} + static inline struct mux_control *mux_control_get(struct udevice *dev, const char *mux_name) {
--
2.29.2