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:
parent
eeaa47d182
commit
cd78824dd9
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue