mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 08:35:19 -05:00
hwmon: adm9240: 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
63bde65918
commit
013adc9852
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ static const struct hwmon_ops adm9240_hwmon_ops = {
|
||||||
.write = adm9240_write,
|
.write = adm9240_write,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct hwmon_channel_info *adm9240_info[] = {
|
static const struct hwmon_channel_info * const adm9240_info[] = {
|
||||||
HWMON_CHANNEL_INFO(chip, HWMON_C_ALARMS),
|
HWMON_CHANNEL_INFO(chip, HWMON_C_ALARMS),
|
||||||
HWMON_CHANNEL_INFO(intrusion, HWMON_INTRUSION_ALARM),
|
HWMON_CHANNEL_INFO(intrusion, HWMON_INTRUSION_ALARM),
|
||||||
HWMON_CHANNEL_INFO(temp,
|
HWMON_CHANNEL_INFO(temp,
|
||||||
|
|
Loading…
Reference in a new issue