1
0
Fork 0
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:
Krzysztof Kozlowski 2023-04-06 22:30:31 +02:00 committed by Guenter Roeck
parent 2b1aec842e
commit c70164adbb

View file

@ -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,