Staging: comedi: Fix some raw printks with dev_warn()
authorConrad Meyer <cemeyer@uw.edu>
Sun, 9 Mar 2014 02:42:39 +0000 (21:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 03:02:12 +0000 (19:02 -0800)
commitd0ba1e38e05212037b5107522f12537f8168c463
tree42a6e057f8ec64527a0f49a063f31a83354a42c0
parent56b1fcfdeb5897c3406647f2e416d853ffd234c8
Staging: comedi: Fix some raw printks with dev_warn()

Brought to you with the help of sed and manual clean-up after.

  $ sed -i -e 's|printk("\\n|dev_warn(dev->hw_dev,\n\t"|' \
    addi-data/hwdrv_apci1500.c

Since all of these printk()s were for invalid API inputs and most of
them returned -EINVAL, I fixed the rest of them to return -EINVAL as
well.

Signed-off-by: Conrad Meyer <cse.cem@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/hwdrv_apci1500.c