commit | d87f5e90585a8b8646c3e9fe92d4c47716f5e19d | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Wed Mar 23 15:37:00 2016 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Mar 28 07:30:36 2016 -0700 |
tree | 17cea8f1777d8d17d6f4c9231ba1de488fde2385 | |
parent | a19b9b476ae3612e6c61c60e7fad7c8974158ef9 [diff] |
staging: comedi: ni_tio: validate clock source Refactor the functions that determine the clock source bits so that they return -EINVAL if the clock source is invalid. Pass the errno back to ni_tio_insn_config(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>