summaryrefslogtreecommitdiff
path: root/include/mux.h
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@blueri.se>2021-07-14 00:02:18 +0300
committerTom Rini <trini@konsulko.com>2021-07-23 14:13:25 +0300
commit0523326af4e505d837968a5694c99c0ee1d0041c (patch)
tree8c8b8a3233bbc0545a0c0433ce1eb13627c8582b /include/mux.h
parentd3c1b514dc4774d14150cba9a19de22cc2a37e7a (diff)
downloadu-boot-0523326af4e505d837968a5694c99c0ee1d0041c.tar.xz
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>
Diffstat (limited to 'include/mux.h')
-rw-r--r--include/mux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mux.h b/include/mux.h
index 23844f480a..9f80991274 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)
{