]> git.baikalelectronics.ru Git - kernel.git/commit
iio: trigger: Print an error if there is no available irq
authorMathieu Othacehe <m.othacehe@gmail.com>
Wed, 20 Feb 2019 16:49:10 +0000 (17:49 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:41 +0000 (20:19 +0100)
commit603c965a36c8056d97018f0c41b9e60b83540ff8
tree5ec367970627115156391bc3a71a47b0a40129b5
parent800967ca93e7bc133eabe73dbc50c4d3a6d569ae
iio: trigger: Print an error if there is no available irq

If there are more trigger consumers than
CONFIG_IIO_CONSUMERS_PER_TRIGGER, iio_trigger_attach_poll_func will
silently fail. Add an error message to inform the user that
CONFIG_IIO_CONSUMERS_PER_TRIGGER limit might be exceeded.

Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-trigger.c