staging:iio:ad7606: Remove out-of-band error reporting
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Oct 2016 17:06:59 +0000 (19:06 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:13 +0000 (19:34 +0100)
commitaa9602666894ca02935267c348286b4f1efda186
treed5a2133acb80f379e995024b8b9c3fe8f0955a6c
parent9f72520fa4e0a1c3060c523ca075f323b9c77488
staging:iio:ad7606: Remove out-of-band error reporting

Currently the ad7606 driver prints a error message to the kernel log when
an application writes an invalid value to a sysfs attribute. While for
initial driver development and testing this might be useful it is quite
disadvantageous in a production environment. The write() call to the sysfs
attribute will already return an error if the value was invalid so the
application is aware that the operation failed. And generally speaking it
is impossible for an application to reliably match a log message in the
kernel log to a specific operation it performed, so the message becomes
just noise and might distract from more critical messages.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606_core.c