iio: Fix parameters in iio_triggered_buffer_setup
authorCristina Opriceana <cristina.opriceana@gmail.com>
Tue, 23 Jun 2015 13:34:19 +0000 (16:34 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 5 Jul 2015 14:19:50 +0000 (15:19 +0100)
commitfcc577dd55db193926537e0e4de98492d665446b
tree1acd727a0c4d268f22ed971ebf074f2b540bf39c
parent5e913d27f91aa15e1311399385579bef5238e2cd
iio: Fix parameters in iio_triggered_buffer_setup

This patch renames the top half handler and the bottom half handler
of iio_triggered_buffer_setup() in accordance with their usage.
The bottom half has been renamed to reflect the fact that it is a
thread based call, compliant with iio_alloc_pollfunc().
The names of the parameters were swapped, thus creating confusion.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-triggered-buffer.c
include/linux/iio/triggered_buffer.h