Commit 832dc510 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Guenter Roeck

hwmon: aquacomputer: 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 b9ab28a7
......@@ -1038,7 +1038,7 @@ static const struct hwmon_ops aqc_hwmon_ops = {
.write = aqc_write
};
static const struct hwmon_channel_info *aqc_info[] = {
static const struct hwmon_channel_info * const aqc_info[] = {
HWMON_CHANNEL_INFO(temp,
HWMON_T_INPUT | HWMON_T_LABEL | HWMON_T_OFFSET,
HWMON_T_INPUT | HWMON_T_LABEL | HWMON_T_OFFSET,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment