Re: [PATCH 2/2] hwmon: (lm87) Get rid of macro-generated functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2012-01-26 at 09:43 -0500, Jean Delvare wrote:
> Use SENSORS_DEVICE_ATTR instead of DEVICE_ATTR for most attributes,
> so that the attribute number can be retrieved and it is no longer
> necessary to generate functions using macros.
> 
> This shaves about 2 kB on the binary module size.
> 
> Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
> ---
> Tested on an emulated LM87 chip.
> 
>  drivers/hwmon/lm87.c |  350 ++++++++++++++++++++++----------------------------
>  1 file changed, 160 insertions(+), 190 deletions(-)

Nice cleanup. Applied.

Thanks,
Guenter



_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux