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>
This commit is contained in:
parent
32fe18d034
commit
67fce5963b
|
@ -293,7 +293,7 @@ static const struct hwmon_ops power_supply_hwmon_ops = {
|
|||
.read_string = power_supply_hwmon_read_string,
|
||||
};
|
||||
|
||||
static const struct hwmon_channel_info *power_supply_hwmon_info[] = {
|
||||
static const struct hwmon_channel_info * const power_supply_hwmon_info[] = {
|
||||
HWMON_CHANNEL_INFO(temp,
|
||||
HWMON_T_LABEL |
|
||||
HWMON_T_INPUT |
|
||||
|
|
Loading…
Reference in New Issue