Commit cd78824d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Hans Verkuil
Browse files

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: default avatarMatt Ranostay <matt.ranostay@konsulko.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent eeaa47d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
};