]> 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)
commit50b73bc56a77a197068023113155f6c63da4e029
treedf29931e4c40b408868f125410b6af143e9b8463
parent242df0d1ad6fd7c716f4f7d455cd67f8b18fff81
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