From: Krzysztof Kozlowski Date: Thu, 11 May 2023 17:54:41 +0000 (+0200) Subject: media: i2c: video: constify pointers to hwmon_channel_info X-Git-Tag: v6.5-rc1~48^2~176 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=cd78824dd989ad733b650f42e078095ff231a215;p=linux-block.git media: i2c: video: constify pointers to hwmon_channel_info Statically allocated array of pointers to hwmon_channel_info can be made const for safety. Reviewed-by: Matt Ranostay Acked-by: Sakari Ailus Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c index 4ba2c5518579..6f98abc7ccc1 100644 --- a/drivers/media/i2c/video-i2c.c +++ b/drivers/media/i2c/video-i2c.c @@ -274,7 +274,7 @@ static const struct hwmon_channel_info amg88xx_temp = { .config = amg88xx_temp_config, }; -static const struct hwmon_channel_info *amg88xx_info[] = { +static const struct hwmon_channel_info * const amg88xx_info[] = { &amg88xx_temp, NULL };