From: Michael Hennerich Date: Wed, 25 May 2011 12:42:07 +0000 (+0200) Subject: staging: iio: industrialio-trigger: set iio_poll_func private_data X-Git-Tag: MMI-PSA29.97-13-9~19249^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c11c4eebdd75fc0f443a3f794a2ddc85afed1932;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: iio: industrialio-trigger: set iio_poll_func private_data Failure to set iio_poll_func private_data, causes zero pointer access violations in all consumer trigger handlers. Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/industrialio-trigger.c b/drivers/staging/iio/industrialio-trigger.c index 615902333fb0..d504aa251ced 100644 --- a/drivers/staging/iio/industrialio-trigger.c +++ b/drivers/staging/iio/industrialio-trigger.c @@ -294,6 +294,7 @@ struct iio_poll_func pf->h = h; pf->thread = thread; pf->type = type; + pf->private_data = private; return pf; }