[lm-sensors] hwmon: (ucd9000/ucd9200) Optimize array walk

Guenter Roeck guenter.roeck at ericsson.com
Wed Aug 31 19:11:43 CEST 2011


On Wed, 2011-08-31 at 11:53 -0400, Jean Delvare wrote:
> Rewrite the loop walking the id array during probe. The new code is
> better adapted to a null-terminated array, and is also clearer and
> more efficient than the original.
> 
> Signed-off-by: Jean Delvare <khali at linux-fr.org>
> Cc: Axel Lin <axel.lin at gmail.com>
> Cc: Guenter Roeck <guenter.roeck at ericsson.com>
> ---
> Inspired by a previous patch from Axel.
> 
Looks good. I'll (hopefully) test it tonight to be sure, but I don't see
any problems with it, so consider it applied. 

I'll make the same changes in the zl6100 driver.

Thanks,
Guenter






More information about the lm-sensors mailing list