From: Jean Delvare Date: Thu, 28 Oct 2010 18:31:45 +0000 (+0200) Subject: hwmon: (w83795) Use 2D arrays for many device attributes X-Git-Tag: v2.6.37-rc1~59^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87df0dad3e024538d2d0d2ce786230e639c2ea8b;p=pandora-kernel.git hwmon: (w83795) Use 2D arrays for many device attributes Use 2D arrays for in, fan, temp and dts device attributes. Using linear arrays is too risky as we have to skip some groups depending on the device model and configuration. Adding or removing an attribute would let the driver build silently but then it would crash at runtime. With 2D arrays, the consistency checking happens at build time, which is much safer. Signed-off-by: Jean Delvare --- Reading git-diff-tree failed