]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (nct6775) Use ARRAY_SIZE for loops where possible
authorGuenter Roeck <linux@roeck-us.net>
Tue, 9 Apr 2013 12:04:00 +0000 (05:04 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 13 Apr 2013 15:44:35 +0000 (08:44 -0700)
commit35cc62e1c3bf284cc74aece74f842d4664885045
tree0ea105e552da63ae4feb4c29faa8a8647983d462
parent06d8a3c46bfae5bbc907a1d352dad19082f841ba
hwmon: (nct6775) Use ARRAY_SIZE for loops where possible

This ensures that the loop iterations are correct even if/when
the number of elements in an array changes.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c