Re: [PATCH v4 2/3] hwmon: (lm77) Drop function macros

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

 



Hi Guenter,

On Sun, 20 Apr 2014 18:28:11 -0700, Guenter Roeck wrote:
> Function macros make the code harder to read and increase code size,
> so drop them.
> 
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> ---
> v4: Really provide temp_regs array size this time
>     Add space before temp_index comment
>     Rebase to patch 1/3 (fixes regression introduced in v3)
> 
> v3: No comma after t_num_entries.
>     Make temp_regs const and provide array size.
>     Fix show_temp_hyst, specifically display of low limit hysteresis.
>     Simplify set_temp and handling of hysteresis.
> 
>     Output with new libsensors:
> 
>     lm77-i2c-9-49
>     Adapter: i2c-diolan-u2c at bus 003 device 013
>     temp1:        +22.5°C  (low  = +10.0°C, hyst = +12.0°C)
>                            (high = +64.0°C, hyst = +62.0°C)
> 			   (crit = +80.0°C, hyst = +78.0°C)
> 
>  drivers/hwmon/lm77.c |  183 +++++++++++++++++++++-----------------------------
>  1 file changed, 75 insertions(+), 108 deletions(-)
> (...)

Looks good to me, except for the "preserve hysteresis when setting
T_crit" comment which you removed here while it should be removed by
the previous patch. But it's only a detail.

Reviewed-by: Jean Delvare <jdelvare@xxxxxxx>

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
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