mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
hwmon: adt7470: 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
07aa164a50
commit
ce94ff2ef9
@ -1187,7 +1187,7 @@ static const struct hwmon_ops adt7470_hwmon_ops = {
|
||||
.write = adt7470_write,
|
||||
};
|
||||
|
||||
static const struct hwmon_channel_info *adt7470_info[] = {
|
||||
static const struct hwmon_channel_info * const adt7470_info[] = {
|
||||
HWMON_CHANNEL_INFO(temp,
|
||||
HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX | HWMON_T_ALARM,
|
||||
HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX | HWMON_T_ALARM,
|
||||
|
Loading…
x
Reference in New Issue
Block a user