]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (pmbus/ltc2978) Code cleanup
authorGuenter Roeck <linux@roeck-us.net>
Thu, 28 Feb 2013 16:14:45 +0000 (08:14 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 21 Mar 2013 15:09:55 +0000 (08:09 -0700)
commitfaeaab3cf96e193ac9b72def82327956c4838cd4
treed024351d50d2713398ed42eb28d0fc3b8331f9f4
parent04df10caa776f00a4c433c869d5b07f3c85e75c0
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>
drivers/hwmon/pmbus/ltc2978.c