]> git.baikalelectronics.ru Git - kernel.git/commit
iio: __iio_update_buffers: Verify configuration before starting to apply it
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 18 May 2015 11:34:47 +0000 (13:34 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 23 May 2015 11:44:30 +0000 (12:44 +0100)
commit028fedd57cb9cbb690a02d5034b0a4cd871b4762
treee7d0782f821001504446b4386b65b4c506a5c295
parentb99a5caada9d8628a21aeb29f0ad50b99f91f597
iio: __iio_update_buffers: Verify configuration before starting to apply it

Currently __iio_update_buffers() verifies whether the new configuration
will work in the middle of the update sequence. This means if the new
configuration is invalid we need to rollback the changes already made. This
patch moves the validation of the new configuration at the beginning of
__iio_update_buffers() and will not start to make any changes if the new
configuration is invalid.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c