hwmon: (it87) Use defines for array sizes and sensor counts
authorGuenter Roeck <linux@roeck-us.net>
Thu, 2 Apr 2015 15:23:45 +0000 (08:23 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:37 +0000 (06:32 -0700)
commit2310048db70a58ae89b37fded0322b6a5ae6443f
tree02fd5a6e4b618e7293bf7b90f2975537f49821fc
parent48b2ae7fe9d0eba523a3633ff0f939aba9e962e2
hwmon: (it87) Use defines for array sizes and sensor counts

Using array size defines makes it much easier to find errors
in index values and loop counts.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c