staging:iio: Make write_event_value callback optional
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 2 Nov 2011 08:40:00 +0000 (09:40 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:39:58 +0000 (16:39 -0800)
commit43c0364551d3ca0042f6f6a3da701edf1143d62f
tree39d7284537763aa1334d87cdcdd22ac052d36197
parent685e010748f64a752a981254101e976d7291d16c
staging:iio: Make write_event_value callback optional

Some devices have fixed thresholds which can not be modified so make the
write_event_value callback optional, so the drivers for these devices do not
have to implement a boilerplate no-op callback.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c