[lm-sensors] [PATCH 2/3] hwmon: (lm80) De-macro the sysfs callbacks
Mark M. Hoffman
mhoffman at lightlink.com
Fri Feb 1 04:07:27 CET 2008
Hi Jean:
* Jean Delvare <khali at linux-fr.org> [2008-01-05 15:37:05 +0100]:
> Use standard dynamic sysfs callbacks instead of macro-generated
> functions. This makes the code more readable, and the binary smaller
> (by about 34%).
>
> As a side note, another benefit of this type of cleanup is that they
> shrink the build time. For example, this cleanup saves about 29% of
> the lm80 driver build time.
>
> Signed-off-by: Jean Delvare <khali at linux-fr.org>
> ---
> Tested using i2c-stub.
>
> drivers/hwmon/lm80.c | 245 ++++++++++++++++++++++----------------------------
> 1 file changed, 111 insertions(+), 134 deletions(-)
>
Applied to hwmon-2.6.git/testing, thanks.
--
Mark M. Hoffman
mhoffman at lightlink.com
More information about the lm-sensors
mailing list