lkml.org 
[lkml]   [2017]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller
From
Date
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


\
 
 \ /
  Last update: 2017-04-21 16:19    [W:0.172 / U:8.832 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site