diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 22:35:24 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 07:08:37 -0700 |
commit | d716e0cf674d016ddeaeb25bede1bcd15366bc7f (patch) | |
tree | fef13618de15dd6221a07e5b224b17ec406b5768 | |
parent | 11305fd37b428e9afddd4acdc104d87774162c09 (diff) | |
download | lwn-d716e0cf674d016ddeaeb25bede1bcd15366bc7f.tar.gz lwn-d716e0cf674d016ddeaeb25bede1bcd15366bc7f.zip |
hwmon: mcp3021: 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>
-rw-r--r-- | drivers/hwmon/mcp3021.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/mcp3021.c b/drivers/hwmon/mcp3021.c index e093b1998296..a5f7a294f33d 100644 --- a/drivers/hwmon/mcp3021.c +++ b/drivers/hwmon/mcp3021.c @@ -102,7 +102,7 @@ static umode_t mcp3021_is_visible(const void *_data, return 0444; } -static const struct hwmon_channel_info *mcp3021_info[] = { +static const struct hwmon_channel_info * const mcp3021_info[] = { HWMON_CHANNEL_INFO(in, HWMON_I_INPUT), NULL }; |