staging:iio: Factor out event handling into its own file
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 3 Jan 2012 13:59:38 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 18:05:06 +0000 (10:05 -0800)
commit0a769a95334a8819da046f13c2ef8d8b344fc199
tree0a53c6ddc9e3d1191833522b743d2c528ed40e56
parent16a39b7a9ccd81458e7e1799c1b213d1d590630c
staging:iio: Factor out event handling into its own file

The core iio file has gotten quite cluttered over time. This patch moves
the event handling code into its own file. Since the event handling code is
largely independent from the core code the only code changes necessary for
this are to make the moved iio_device_register_eventset,
iio_device_unregister_eventset and iio_event_getfd functions non static.

This has also the advantage that industrialio-core.c is now closer again to
its counterpart in the outofstaging branch.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/Makefile
drivers/staging/iio/iio_core.h
drivers/staging/iio/industrialio-core.c
drivers/staging/iio/industrialio-event.c [new file with mode: 0644]