staging: comedi: daqboard2000: change daqboard2000_write_cpld() return value
authorIan Abbott <abbotti@mev.co.uk>
Wed, 4 Jan 2017 10:55:39 +0000 (10:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 16:38:32 +0000 (17:38 +0100)
commit7680a227293676eec528e4ef966769e65275d697
treee402304f8ff9f51c4dda03daf9ea0ad9068ffcd8
parent90bc9cb34bc211a87aefab3c4392969311648087
staging: comedi: daqboard2000: change daqboard2000_write_cpld() return value

`daqboard2000_write_cpld()` currently returns 1 on success, or 0 on
failure.  Change it to return 0 on success, or `-EIO` on failure.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/daqboard2000.c