Commit 98ce1fc1 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Guenter Roeck
Browse files

hwmon: nzxt: constify pointers to hwmon_channel_info



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

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 9add51f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ static const struct hwmon_ops kraken2_hwmon_ops = {
	.read_string = kraken2_read_string,
};

static const struct hwmon_channel_info *kraken2_info[] = {
static const struct hwmon_channel_info * const kraken2_info[] = {
	HWMON_CHANNEL_INFO(temp,
			   HWMON_T_INPUT | HWMON_T_LABEL),
	HWMON_CHANNEL_INFO(fan,
+1 −1
Original line number Diff line number Diff line
@@ -663,7 +663,7 @@ static const struct hwmon_ops nzxt_smart2_hwmon_ops = {
	.write = nzxt_smart2_hwmon_write,
};

static const struct hwmon_channel_info *nzxt_smart2_channel_info[] = {
static const struct hwmon_channel_info * const nzxt_smart2_channel_info[] = {
	HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_LABEL,
			   HWMON_F_INPUT | HWMON_F_LABEL,
			   HWMON_F_INPUT | HWMON_F_LABEL),