From: Lars-Peter Clausen Date: Mon, 18 May 2015 11:34:48 +0000 (+0200) Subject: iio: __iio_update_buffers: Split enable and disable path into helper functions X-Git-Tag: omap-for-v4.2/fixes-rc1^2~92^2~628^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623d74e37f12c9276b15c2c0540b438e684af0d2;p=pandora-kernel.git iio: __iio_update_buffers: Split enable and disable path into helper functions __iio_update_buffers is already a rather large function with many different error paths and it is going to get even larger. This patch factors out the device enable and device disable paths into separate helper functions. The patch also re-implements iio_disable_all_buffers() using the new iio_disable_buffers() function removing a fair bit of redundant code. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed