]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Fix 'Macros with multiple statements' checkpatch error
authorGuenter Roeck <linux@roeck-us.net>
Sun, 20 Jan 2013 04:59:04 +0000 (20:59 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 6 Feb 2013 17:58:00 +0000 (09:58 -0800)
commit5ae2f1ebd5a6dc155767c213d43ace332ee3fcd5
treedf29931e4c40b408868f125410b6af143e9b8463
parente45d5eb1c6647d36d15385d724fee5d579767ea3
hwmon: (pmbus) Fix 'Macros with multiple statements' checkpatch error

Fix:
ERROR: Macros with multiple statements should be enclosed in a do - while loop

by unwinding the problematic macros.

As a side effect, this patch reduces code size on x86_64 by 160 bytes and bss
size by 64 bytes.

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