]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd47e3b258cf630b328dbccee9417de0bd946cd21
tree0a53c6ddc9e3d1191833522b743d2c528ed40e56
parente1b35c721d7c3b10a73c48072ac6b90347af7aa0
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]