tools:iio:iio_event_monitor: refactor events output
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:40:18 +0000 (14:40 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 1 Jun 2015 07:34:48 +0000 (08:34 +0100)
Refactor the code in print_event() to reduce code duplication and better
reflect that the type is output unconditionally, as well as cascade the
dependency of the diff-channel. Saves a few lines of code, as well.

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

Simple merge