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)
commitbe35d281da6af5f147383f06d050426901b2d25f
tree5ec367970627115156391bc3a71a47b0a40129b5
parentcb57f2eb0156829f61dd946d96b1270ea7535b76
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