mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
hwmon: corsair: 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
edcde8cfef
commit
42bd7a59f3
@ -385,7 +385,7 @@ static const struct hwmon_ops ccp_hwmon_ops = {
|
||||
.write = ccp_write,
|
||||
};
|
||||
|
||||
static const struct hwmon_channel_info *ccp_info[] = {
|
||||
static const struct hwmon_channel_info * const ccp_info[] = {
|
||||
HWMON_CHANNEL_INFO(chip,
|
||||
HWMON_C_REGISTER_TZ),
|
||||
HWMON_CHANNEL_INFO(temp,
|
||||
|
@ -571,7 +571,7 @@ static const struct hwmon_ops corsairpsu_hwmon_ops = {
|
||||
.read_string = corsairpsu_hwmon_ops_read_string,
|
||||
};
|
||||
|
||||
static const struct hwmon_channel_info *corsairpsu_info[] = {
|
||||
static const struct hwmon_channel_info * const corsairpsu_info[] = {
|
||||
HWMON_CHANNEL_INFO(chip,
|
||||
HWMON_C_REGISTER_TZ),
|
||||
HWMON_CHANNEL_INFO(temp,
|
||||
|
Loading…
Reference in New Issue
Block a user