mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 08:35:19 -05:00
hwmon: max31730: 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
2b1aec842e
commit
c70164adbb
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ static umode_t max31730_is_visible(const void *data,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct hwmon_channel_info *max31730_info[] = {
|
static const struct hwmon_channel_info * const max31730_info[] = {
|
||||||
HWMON_CHANNEL_INFO(chip,
|
HWMON_CHANNEL_INFO(chip,
|
||||||
HWMON_C_REGISTER_TZ),
|
HWMON_C_REGISTER_TZ),
|
||||||
HWMON_CHANNEL_INFO(temp,
|
HWMON_CHANNEL_INFO(temp,
|
||||||
|
|
Loading…
Reference in a new issue