hwmon: lochnagar: constify pointers to hwmon_channel_info

Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Krzysztof Kozlowski 2023-04-06 22:30:25 +02:00 committed by Guenter Roeck
parent 043f90c8d1
commit bf36b752ca

View File

@ -321,7 +321,7 @@ static const struct hwmon_ops lochnagar_ops = {
.write = lochnagar_write,
};
static const struct hwmon_channel_info *lochnagar_info[] = {
static const struct hwmon_channel_info * const lochnagar_info[] = {
HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT),
HWMON_CHANNEL_INFO(in, HWMON_I_INPUT | HWMON_I_LABEL,
HWMON_I_INPUT | HWMON_I_LABEL,