hwmon: (tmp421) introduce MAX_CHANNELS define
authorKrzysztof Adamski <krzysztof.adamski@nokia.com>
Fri, 24 Sep 2021 09:39:06 +0000 (11:39 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 12 Oct 2021 14:22:40 +0000 (07:22 -0700)
commitcae0233946c316884e4c40925c7d69b9221c02f9
tree400bd3e54b7453e3ca68d17bf05c0252c20124a2
parent0a4157196a5da25b28aa6840bcac553c925e5013
hwmon: (tmp421) introduce MAX_CHANNELS define

There are few places where the maximal number of channels is used define
the size of arrays but when raw number is used it is not clear that they
really related to this quantity.
This commit introduces MAX_CHANNELS define and uses it those places to
give some context to the number.

Signed-off-by: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Link: https://lore.kernel.org/r/abc1a213a25b890b799b35ad94bb543a2ade7fc8.1632473318.git.krzysztof.adamski@nokia.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp421.c