iio: iio_event_getfd -- fix ev_int build failure
authorAndy Whitcroft <apw@canonical.com>
Fri, 25 Nov 2011 10:56:22 +0000 (10:56 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Nov 2011 21:23:49 +0000 (13:23 -0800)
commitaaa0b4f00729d5530b7d983930e60255574b347b
treea4a1a15a36f59cddbb5bc770fd23ebf66dff3c83
parentac03564f90bbe141e1fd917bde0ed3fee79a0dce
iio: iio_event_getfd -- fix ev_int build failure

Fix build failure in staging iio driver:

.../drivers/staging/iio/industrialio-core.c: In function 'iio_event_getfd':
.../drivers/staging/iio/industrialio-core.c:262:32: error:
'ev_int' undeclared (first use in this function)

Also convert the rest of the function to use the new variable.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/staging/iio/industrialio-core.c