From: Jean Delvare Date: Fri, 5 Mar 2010 21:17:16 +0000 (+0100) Subject: hwmon: (it87) Refactor attributes creation and removal X-Git-Tag: v2.6.34-rc1~25^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=723a0aa0a10f111d7e9e0977d51ac996bf8edbbf;p=pandora-kernel.git hwmon: (it87) Refactor attributes creation and removal There is a lot of code redundancy in the creation of the fan and pwm attributes. Move these attributes to arrays so that the code can be simplified. This in turns makes the attributes removal code larger, so move it to a separate function that can be called in both the standard removal case and the error path during probing. Signed-off-by: Jean Delvare --- Reading git-diff-tree failed