From: Krzysztof Kozlowski Date: Thu, 11 May 2023 17:56:27 +0000 (+0200) Subject: platform/x86: toshiba: constify pointers to hwmon_channel_info X-Git-Tag: v6.6.7~2486^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5a08ed51ed780a312fa07daaf1edb92b78e06f8;p=platform%2Fkernel%2Flinux-starfive.git platform/x86: toshiba: constify pointers to hwmon_channel_info Statically allocated array of pointers to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20230511175627.282246-4-krzysztof.kozlowski@linaro.org Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index b34984b..291f14e 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -3037,7 +3037,7 @@ static int toshiba_acpi_hwmon_read(struct device *dev, enum hwmon_sensor_types t return -EOPNOTSUPP; } -static const struct hwmon_channel_info *toshiba_acpi_hwmon_info[] = { +static const struct hwmon_channel_info * const toshiba_acpi_hwmon_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), NULL };