mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
hwmon: ina238: 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>
This commit is contained in:
parent
92b978fe76
commit
bf9b7f92df
@ -501,7 +501,7 @@ static umode_t ina238_is_visible(const void *drvdata,
|
||||
HWMON_I_MAX | HWMON_I_MAX_ALARM | \
|
||||
HWMON_I_MIN | HWMON_I_MIN_ALARM)
|
||||
|
||||
static const struct hwmon_channel_info *ina238_info[] = {
|
||||
static const struct hwmon_channel_info * const ina238_info[] = {
|
||||
HWMON_CHANNEL_INFO(in,
|
||||
/* 0: shunt voltage */
|
||||
INA238_HWMON_IN_CONFIG,
|
||||
|
Loading…
Reference in New Issue
Block a user