mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
w1: therm: constify pointers to hwmon_channel_info
Statically allocated array of pointed to hwmon_channel_info can be made const for safety. Link: https://lore.kernel.org/r/20230407150121.79887-1-krzysztof.kozlowski@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user