From: Lars-Peter Clausen Date: Mon, 7 Oct 2013 11:50:00 +0000 (+0100) Subject: iio: Add a helper to free a list of IIO device attributes X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~196^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84088ebd14aebf1b8499409a037094b9b88e2796;p=pandora-kernel.git iio: Add a helper to free a list of IIO device attributes We have the same code to free a IIO device attribute list in multiple place. This patch adds a new helper function to take care of this and replaces the custom instances with a call to the helper function. Note that we do not need to call list_del() for each of the list items since we will never look at any of the list items nor the list itself again. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed