Commit 70df9a55 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Guenter Roeck
Browse files

hwmon: raspberrypi: constify pointers to hwmon_channel_info



Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 42d273bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static umode_t rpi_is_visible(const void *_data, enum hwmon_sensor_types type,
	return 0444;
}

static const struct hwmon_channel_info *rpi_info[] = {
static const struct hwmon_channel_info * const rpi_info[] = {
	HWMON_CHANNEL_INFO(in,
			   HWMON_I_LCRIT_ALARM),
	NULL