]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit257aa35c9f58342324bc30624d94554c09ef9a8f
tree39d7284537763aa1334d87cdcdd22ac052d36197
parent87ae59d25753a9d92ccad7551ac4c9cdabfef744
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