commit | 3d0d2839937778bd19bf505b38093d829a1cdf69 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Thu Feb 28 08:14:45 2013 -0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Sun Apr 07 21:16:41 2013 -0700 |
tree | 74a5cf09ef4bf10aeded03fa8ed183f69919b1fb | |
parent | bec24b74b2cf56442af11f2d43c5083650b8c372 [diff] |
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 <linux@roeck-us.net>