From: Guenter Roeck Date: Thu, 28 Feb 2013 16:14:45 +0000 (-0800) Subject: hwmon: (pmbus/ltc2978) Code cleanup X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~140^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d0d2839937778bd19bf505b38093d829a1cdf69;p=pandora-kernel.git hwmon: (pmbus/ltc2978) Code cleanup Use u16 instead of int to store cached limit attributes. This reduces allocated data size per driver instance by 48 bytes. Use defines for the number of pages supported by individual chips. Use ARRAY_SIZE for loops to initialize array variables, and initialize all variables in the same code block. Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed