From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Thu, 4 Feb 2021 23:39:16 -0500 Subject: [RFC PATCH 06/13] mux: Define a stub for mux_get_by_index if CONFIG_MUX is disabled In-Reply-To: <20210205043924.149504-1-seanga2@gmail.com> References: <20210205043924.149504-1-seanga2@gmail.com> Message-ID: <20210205043924.149504-7-seanga2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This allows code using mux_get_by_index to be agnostic about CONFIG_MUX. Signed-off-by: Sean Anderson --- 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