diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-05-18 14:34:48 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-05-23 14:44:34 +0300 |
commit | 623d74e37f12c9276b15c2c0540b438e684af0d2 (patch) | |
tree | ae91fde9752af1146d67e578bad3c94d8113a43e /tools/cgroup | |
parent | 6e509c4d91632b6f8f05f0bee3a20fd50ca2263b (diff) | |
download | linux-623d74e37f12c9276b15c2c0540b438e684af0d2.tar.xz |
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 <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/cgroup')
0 files changed, 0 insertions, 0 deletions