Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

From: Philipp Zabel
Date: Fri Apr 21 2017 - 10:19:05 EST


Hi Peter,

On Thu, 2017-04-13 at 18:43 +0200, Peter Rosin wrote:
[...]
> +int mux_control_select(struct mux_control *mux, int state)

state could be unsigned int for the consumer facing API.

> +{
> + int ret;

And mux_control_select should check that (0 <= state < mux->states).

regards
Philipp