mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
hwmon: sy7636a: 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
dc8811447c
commit
5b5d8ae019
@ -52,7 +52,7 @@ static const struct hwmon_ops sy7636a_hwmon_ops = {
|
||||
.read = sy7636a_read,
|
||||
};
|
||||
|
||||
static const struct hwmon_channel_info *sy7636a_info[] = {
|
||||
static const struct hwmon_channel_info * const sy7636a_info[] = {
|
||||
HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ),
|
||||
HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT),
|
||||
NULL
|
||||
|
Loading…
Reference in New Issue
Block a user