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

power: supply: hwmon: 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: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Krzysztof Kozlowski and committed by
Sebastian Reichel
67fce596 32fe18d0

+1 -1
+1 -1
drivers/power/supply/power_supply_hwmon.c
··· 293 293 .read_string = power_supply_hwmon_read_string, 294 294 }; 295 295 296 - static const struct hwmon_channel_info *power_supply_hwmon_info[] = { 296 + static const struct hwmon_channel_info * const power_supply_hwmon_info[] = { 297 297 HWMON_CHANNEL_INFO(temp, 298 298 HWMON_T_LABEL | 299 299 HWMON_T_INPUT |