Skip to content

Commit 973ef08

Browse files
krzkalexandrebelloni
authored andcommitted
rtc: ab-eoz9: 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 <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230511175609.282191-1-krzysztof.kozlowski@linaro.org Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent ac9a786 commit 973ef08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/rtc/rtc-ab-eoz9.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static const struct hwmon_channel_info abeoz9_temp = {
455455
.config = abeoz9_temp_config,
456456
};
457457

458-
static const struct hwmon_channel_info *abeoz9_info[] = {
458+
static const struct hwmon_channel_info * const abeoz9_info[] = {
459459
&abeoz9_chip,
460460
&abeoz9_temp,
461461
NULL

0 commit comments

Comments
 (0)