From: Linus Lüssing Date: Sun, 21 Nov 2010 23:55:53 +0000 (+0100) Subject: Staging: batman-adv: Wrapper functions for sysfs storing X-Git-Tag: v2.6.38-rc1~423^2~225 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=add9e1722755072f40d79104db04e350b25624d9;p=pandora-kernel.git Staging: batman-adv: Wrapper functions for sysfs storing Sysfs configuration options that just took a boolean value (enable(d)/disable(d)/0/1) and integer setting basically all had the same structure. To avoid even more copy and pasting in the future and to make introducing new configuration parameters for batman-adv simpler, more generic wrapper functions are being introduced with this commit. They can deal with boolean and unsigned integer parameters, storing them in the specified atomic_t variables. Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed