From: Jonathan Cameron Date: Sun, 8 Sep 2013 13:57:00 +0000 (+0100) Subject: iio: refactor info mask and ext_info attribute creation. X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~694^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3704432fb1fd8ab2df114bad6df752381246b609;p=pandora-kernel.git iio: refactor info mask and ext_info attribute creation. Introduce an enum to specify whether the attribute is separate or shared. Factor out the bitmap handling for loop into a separate function. Tidy up error handling and add a NULL assignment to squish a false positive warning from GCC. Change ext_info shared type from boolean to enum and update in all drivers. Signed-off-by: Jonathan Cameron Reviewed-by: Lars-Peter Clausen --- Reading git-diff-tree failed