[lm-sensors] [PATCH v2] sensors: Use defines for array sizes

Jean Delvare khali at linux-fr.org
Mon Jan 9 18:02:27 CET 2012


On Mon,  9 Jan 2012 06:40:45 -0800, Guenter Roeck wrote:
> Use defines for array sizes. For alarm attributes, take into account that both
> the generic alarm flag as well as individual alarm attributes may be provided
> by a driver (even though that should not be the case).
> 
> Remove overflow checks from get_sensor_limit_data(), as overflows should
> no longer happen.
> 
> Signed-off-by: Guenter Roeck <linux at roeck-us.net>
> ---
> v2: Fix MAX() macro

D'oh, I'm slow, sorry. I should have reviewed than one instead of v1.

-- 
Jean Delvare




More information about the lm-sensors mailing list