mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
hwmon: lochnagar: 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
043f90c8d1
commit
bf36b752ca
@ -321,7 +321,7 @@ static const struct hwmon_ops lochnagar_ops = {
|
||||
.write = lochnagar_write,
|
||||
};
|
||||
|
||||
static const struct hwmon_channel_info *lochnagar_info[] = {
|
||||
static const struct hwmon_channel_info * const lochnagar_info[] = {
|
||||
HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT),
|
||||
HWMON_CHANNEL_INFO(in, HWMON_I_INPUT | HWMON_I_LABEL,
|
||||
HWMON_I_INPUT | HWMON_I_LABEL,
|
||||
|
Loading…
Reference in New Issue
Block a user