hwmon: (lm80) De-macro the
Hi Jean:
Quoted 8 lines · Jean Delvare
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.
Quoted 7 lines
Signed-off-by Jean Delvare <[email protected]>---
Tested using i2c-stub.drivers/hwmon/lm80.c | 245 ++++++++++++++++++++++---------------------------- 1 file changed, 111 insertions(+), 134 deletions(-)
Applied to hwmon-2.6.git/testing, thanks.
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors