From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:38:14 +0000 (+0200) Subject: hwmon: raspberrypi: constify pointers to hwmon_channel_info X-Git-Tag: v6.4-rc1~151^2~47 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=70df9a55434b2c05f70163524007f1b4382489a3;p=linux-block.git 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: Krzysztof Kozlowski Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/raspberrypi-hwmon.c b/drivers/hwmon/raspberrypi-hwmon.c index 1650d3b4c26e..65cc52e47db0 100644 --- a/drivers/hwmon/raspberrypi-hwmon.c +++ b/drivers/hwmon/raspberrypi-hwmon.c @@ -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