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 <matt.ranostay@konsulko.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
Krzysztof Kozlowski 2023-05-11 19:54:41 +02:00 committed by Hans Verkuil
parent eeaa47d182
commit cd78824dd9
1 changed files with 1 additions and 1 deletions

View File

@ -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
};