]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Simplify memory allocation for labels and booleans
authorGuenter Roeck <linux@roeck-us.net>
Sun, 20 Jan 2013 16:13:21 +0000 (08:13 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 6 Feb 2013 17:58:01 +0000 (09:58 -0800)
commit03d8d4d2f897d29822ac1453d6d06a49950da67f
treec9dd574505f76f5d44fdde2e3148f51a90febc33
parentfe2492295a3851e3d9d55166ab19821b8d973656
hwmon: (pmbus) Simplify memory allocation for labels and booleans

Since memory is now allocated with dev_ functions, we no longer need to keep
track of allocated memory. Memory allocation for booleans and labels can
therefore be simplified substantially by allocating it only as needed.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c