staging: comedi: s526: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e44d4907f8
commit
0cb7e343de
|
@ -408,9 +408,8 @@ static int s526_gpct_winsn(struct comedi_device *dev,
|
|||
*/
|
||||
if ((data[1] <= data[0]) || !data[0])
|
||||
return -EINVAL;
|
||||
|
||||
/* Fall thru to write the PULSE_WIDTH */
|
||||
|
||||
/* to write the PULSE_WIDTH */
|
||||
/* fall through */
|
||||
case INSN_CONFIG_GPCT_QUADRATURE_ENCODER:
|
||||
case INSN_CONFIG_GPCT_SINGLE_PULSE_GENERATOR:
|
||||
s526_gpct_write(dev, chan, data[0]);
|
||||
|
|
Loading…
Reference in New Issue