]> 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>
Mon, 1 Apr 2013 17:20:57 +0000 (10:20 -0700)
commit23213ed45417ffff7178c2b893c5569d3f7a8dfd
tree6aef12fbaa009bb153ed356ea799f5ad429ce6e0
parent671050b282a16a028942b5710ede5b8de55d341d
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