提交 0523326a 编写于 作者: P Patrick Wildt 提交者: Tom Rini

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: NPatrick Wildt <patrick@blueri.se>
Reviewed-by: NPratyush Yadav <p.yadav@ti.com>
上级 d3c1b514
...@@ -51,7 +51,7 @@ unsigned int mux_control_states(struct mux_control *mux); ...@@ -51,7 +51,7 @@ unsigned int mux_control_states(struct mux_control *mux);
*/ */
int __must_check mux_control_select(struct mux_control *mux, int __must_check mux_control_select(struct mux_control *mux,
unsigned int state); 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. * mux_control_deselect() - Deselect the previously selected multiplexer state.
...@@ -128,7 +128,7 @@ int __must_check mux_control_select(struct mux_control *mux, ...@@ -128,7 +128,7 @@ int __must_check mux_control_select(struct mux_control *mux,
return -ENOSYS; 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) int mux_control_deselect(struct mux_control *mux)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册