diff options
author | Patrick Wildt <patrick@blueri.se> | 2021-07-13 23:02:18 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-22 18:13:34 -0400 |
commit | 26ee31cb01f66e90e6d0679742426a1efa2c2dd9 (patch) | |
tree | 12b68287798fbdb387658f87526d5ae2cc3736eb | |
parent | 2cf12c01a89113185f0b295cc71d7aa5cef0fd63 (diff) | |
download | u-boot-26ee31cb01f66e90e6d0679742426a1efa2c2dd9.zip u-boot-26ee31cb01f66e90e6d0679742426a1efa2c2dd9.tar.gz u-boot-26ee31cb01f66e90e6d0679742426a1efa2c2dd9.tar.bz2 |
mux: correct prototype for mux_control_try_select()
The macro should be passed a state, which should be passed
to the actual function. Otherwise using that macro would
yield a build error.
Signed-off-by: Patrick Wildt <patrick@blueri.se>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
-rw-r--r-- | include/mux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mux.h b/include/mux.h index 23844f4..9f80991 100644 --- a/include/mux.h +++ b/include/mux.h @@ -51,7 +51,7 @@ unsigned int mux_control_states(struct mux_control *mux); */ int __must_check mux_control_select(struct mux_control *mux, unsigned int state); -#define mux_control_try_select(mux) mux_control_select(mux) +#define mux_control_try_select(mux, state) mux_control_select(mux, state) /** * mux_control_deselect() - Deselect the previously selected multiplexer state. @@ -128,7 +128,7 @@ int __must_check mux_control_select(struct mux_control *mux, return -ENOSYS; } -#define mux_control_try_select(mux) mux_control_select(mux) +#define mux_control_try_select(mux, state) mux_control_select(mux, state) int mux_control_deselect(struct mux_control *mux) { |