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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
bb54a54b5c
commit
2a06edbe33
@ -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 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user