Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: light: vcnl4000: remove error messages for trigger and irq

The error code is available in the log after return. In our case,
attaching a triggered buffer can only fail if we are out of memory, as
no other buffer is being attached. Remove duplicate error messages to
reduce noise in dmesg.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Erikas Bitovtas and committed by
Jonathan Cameron
b10aecd9 177fa06d

+2 -7
+2 -7
drivers/iio/light/vcnl4000.c
··· 2033 2033 NULL, 2034 2034 data->chip_spec->trig_buffer_func, 2035 2035 data->chip_spec->buffer_setup_ops); 2036 - if (ret < 0) { 2037 - dev_err(&client->dev, 2038 - "unable to setup iio triggered buffer\n"); 2036 + if (ret < 0) 2039 2037 return ret; 2040 - } 2041 2038 } 2042 2039 2043 2040 if (client->irq && data->chip_spec->irq_thread) { ··· 2044 2047 IRQF_ONESHOT, 2045 2048 "vcnl4000_irq", 2046 2049 indio_dev); 2047 - if (ret < 0) { 2048 - dev_err(&client->dev, "irq request failed\n"); 2050 + if (ret < 0) 2049 2051 return ret; 2050 - } 2051 2052 2052 2053 ret = vcnl4010_probe_trigger(indio_dev); 2053 2054 if (ret < 0)