]> git.baikalelectronics.ru Git - kernel.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, 8 Apr 2013 04:16:41 +0000 (21:16 -0700)
commitc62afa3be4d4f075d30c5d5315c74dfc4b4f1571
tree74a5cf09ef4bf10aeded03fa8ed183f69919b1fb
parent747952116ee6e1f65b1c7452eaf1d6a6b39b288d
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