Commit 2a06edbe authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Guenter Roeck
Browse files

hwmon: nct7904: 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 bb54a54b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -803,7 +803,7 @@ static int nct7904_detect(struct i2c_client *client,
	return 0;
}

static const struct hwmon_channel_info *nct7904_info[] = {
static const struct hwmon_channel_info * const nct7904_info[] = {
	HWMON_CHANNEL_INFO(in,
			   /* dummy, skipped in is_visible */
			   HWMON_I_INPUT | HWMON_I_MIN | HWMON_I_MAX |