mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
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>
This commit is contained in:
parent
d3c1b514dc
commit
0523326af4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue