Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: sht4x: 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 <krzysztof.kozlowski@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Krzysztof Kozlowski and committed by
Guenter Roeck
11c1dff5 1ff3d23d

+1 -1
+1 -1
drivers/hwmon/sht4x.c
··· 214 214 } 215 215 } 216 216 217 - static const struct hwmon_channel_info *sht4x_info[] = { 217 + static const struct hwmon_channel_info * const sht4x_info[] = { 218 218 HWMON_CHANNEL_INFO(chip, HWMON_C_UPDATE_INTERVAL), 219 219 HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), 220 220 HWMON_CHANNEL_INFO(humidity, HWMON_H_INPUT),