staging:iio:adc:max1363 fix missing update_scan_mask callback.
authorJonathan Cameron <jic23@kernel.org>
Tue, 10 Apr 2012 20:11:05 +0000 (21:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 20:26:33 +0000 (13:26 -0700)
When moving over to the new sw_ring_preenable I managed to add
this callback to only one of the two iio_info structures. As
such only some devices will currently work.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/max1363_core.c

index cf3e2ca7e3148052f24dbc889b6f7c498ba27747..2536b63c8f1d747eee81e3eaa66c5a5445eb170b 100644 (file)
@@ -830,6 +830,7 @@ static struct attribute_group max1363_event_attribute_group = {
 static const struct iio_info max1238_info = {
        .read_raw = &max1363_read_raw,
        .driver_module = THIS_MODULE,
+       .update_scan_mode = &max1363_update_scan_mode,
 };
 
 static const struct iio_info max1363_info = {