summaryrefslogtreecommitdiff
path: root/drivers/hwmon/peci/cputemp.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-06 22:38:12 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 07:08:38 -0700
commit0c15d66d071c3490a9a3004b5a4c6f7524041a99 (patch)
treef5f378a79c5cd68e4acd88166826f5a73e0cc495 /drivers/hwmon/peci/cputemp.c
parent195030d34ee9a77e851b23b9d5f174860e21a982 (diff)
hwmon: peci: 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>
Diffstat (limited to 'drivers/hwmon/peci/cputemp.c')
-rw-r--r--drivers/hwmon/peci/cputemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/peci/cputemp.c b/drivers/hwmon/peci/cputemp.c
index 87d56f0fc888..e5b65a382772 100644
--- a/drivers/hwmon/peci/cputemp.c
+++ b/drivers/hwmon/peci/cputemp.c
@@ -447,7 +447,7 @@ static const struct hwmon_ops peci_cputemp_ops = {
.read = cputemp_read,
};
-static const struct hwmon_channel_info *peci_cputemp_info[] = {
+static const struct hwmon_channel_info * const peci_cputemp_info[] = {
HWMON_CHANNEL_INFO(temp,
/* Die temperature */
HWMON_T_LABEL | HWMON_T_INPUT | HWMON_T_MAX |