Message ID | 20230511175609.282191-1-krzysztof.kozlowski@linaro.org |
---|---|
State | Accepted |
Headers | show |
Series | [RESEND,1/4] rtc: ab-eoz9: constify pointers to hwmon_channel_info | expand |
On Thu, 11 May 2023 19:56:06 +0200, Krzysztof Kozlowski wrote: > Statically allocated array of pointers to hwmon_channel_info can be made > const for safety. > > Applied, thanks! [1/4] rtc: ab-eoz9: constify pointers to hwmon_channel_info commit: 973ef08456f8c6aea4672ae986dfe907b9e4fdc3 [2/4] rtc: ds3232: constify pointers to hwmon_channel_info commit: d00caa55cecd3e833c21c9372fc558cb9f40a07f [3/4] rtc: isl12022: constify pointers to hwmon_channel_info commit: 303b1e894470421f7c5b6452937fc8c1f0f89075 [4/4] rtc: rv3032: constify pointers to hwmon_channel_info commit: b19118965778da3ba9fbeeca39bdf24738d229b4 Best regards,
diff --git a/drivers/rtc/rtc-ab-eoz9.c b/drivers/rtc/rtc-ab-eoz9.c index 34611f6dedcb..143650cb7822 100644 --- a/drivers/rtc/rtc-ab-eoz9.c +++ b/drivers/rtc/rtc-ab-eoz9.c @@ -455,7 +455,7 @@ static const struct hwmon_channel_info abeoz9_temp = { .config = abeoz9_temp_config, }; -static const struct hwmon_channel_info *abeoz9_info[] = { +static const struct hwmon_channel_info * const abeoz9_info[] = { &abeoz9_chip, &abeoz9_temp, NULL
Statically allocated array of pointers to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/rtc/rtc-ab-eoz9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)