]> Git Repo - J-linux.git/commitdiff
w1: therm: constify pointers to hwmon_channel_info
authorKrzysztof Kozlowski <[email protected]>
Fri, 7 Apr 2023 15:01:21 +0000 (17:01 +0200)
committerKrzysztof Kozlowski <[email protected]>
Mon, 8 May 2023 10:16:38 +0000 (12:16 +0200)
Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
drivers/w1/slaves/w1_therm.c

index ab7a411578f8f672ee14ea29070f9fa4fd2159c9..c85e80c7e13078afb9beb3fbae23356954644cee 100644 (file)
@@ -454,7 +454,7 @@ static const struct hwmon_channel_info w1_temp = {
        .config = w1_temp_config,
 };
 
-static const struct hwmon_channel_info *w1_info[] = {
+static const struct hwmon_channel_info * const w1_info[] = {
        &w1_temp,
        NULL
 };
This page took 0.060027 seconds and 4 git commands to generate.