diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 22:30:04 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 07:08:34 -0700 |
commit | 69a1ffca989e0b43afda1b8c93a43433a1c9ec60 (patch) | |
tree | 7d6478ce3af439621365ace43ce2cd21bec6dd7f /drivers/hwmon/as370-hwmon.c | |
parent | 832dc5106e813b4dc942bce27f89819f8d21fbd7 (diff) |
hwmon: as370: 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>
Diffstat (limited to 'drivers/hwmon/as370-hwmon.c')
-rw-r--r-- | drivers/hwmon/as370-hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/as370-hwmon.c b/drivers/hwmon/as370-hwmon.c index 63b5b2d6e593..fffbf385a57f 100644 --- a/drivers/hwmon/as370-hwmon.c +++ b/drivers/hwmon/as370-hwmon.c @@ -76,7 +76,7 @@ as370_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, } } -static const struct hwmon_channel_info *as370_hwmon_info[] = { +static const struct hwmon_channel_info * const as370_hwmon_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), NULL }; |