BACKPORT: iio: Export userspace IIO headers

After UAPI header file split [1] all user-kernel interfaces were
placed under include/uapi/.

This patch moves IIO user specific API from:
	* include/linux/iio/events.h => include/uapi/linux/iio/events.h
	* include/linux/types.h => include/uapi/linux/types.h

Now there is no need for nasty tricks to compile userspace programs
(e.g iio_event_monitor). Just installing the kernel headers with
make headers_install command does the job.


Change-Id: I57f57f83d25a2716a3fb0722e68841049f32ff7b
Signed-off-by: Daniel Baluta <>
Signed-off-by: Jonathan Cameron <>
6 files changed