From: Lars-Peter Clausen Date: Wed, 13 May 2015 14:04:46 +0000 (+0200) Subject: iio: __iio_update_buffers: Perform request_update() only for new buffers X-Git-Tag: omap-for-v4.2/fixes-rc1^2~92^2~628^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcc1b2f57d89142acf6173a8e6ffb19f5f5ec876;p=pandora-kernel.git iio: __iio_update_buffers: Perform request_update() only for new buffers We only have to call the request_update() callback for a newly inserted buffer. The configuration of the already previously active buffers will not have changed. This also allows us to move the request_update() call to the beginning of __iio_update_buffers(), before any currently active buffers are stopped. This makes the error handling a lot easier since no changes were made to the buffer list and no rollback needs to be performed. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed