iio: event_monitor: report unsupported events
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 11 Aug 2015 12:34:38 +0000 (14:34 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Aug 2015 09:51:25 +0000 (10:51 +0100)
commit672f93b6047cc724f002cf50a84f4e8155b86f12
treee470cebf7514dacc03c8344dab1d610e699ea4ec
parenta0175b9c76f59c1f5706f986d690e27ba06363dd
iio: event_monitor: report unsupported events

This makes the event monitor bail out with a helpful error
message if a device does not support events, as a related
fix to iio core now makes it return -ENODEV properly.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_event_monitor.c