aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hwmon.h
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-06 22:29:56 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-04-07 08:45:17 -0700
commitd8cc9415a40f479b666fc03e7b1f4601868e6dc8 (patch)
tree9e51cbfab9e589649a2235e61276b6a1c937128f /include/linux/hwmon.h
parentLinux 6.3-rc5 (diff)
downloadwireguard-linux-d8cc9415a40f479b666fc03e7b1f4601868e6dc8.tar.xz
wireguard-linux-d8cc9415a40f479b666fc03e7b1f4601868e6dc8.zip
hwmon: constify pointers to hwmon_channel_info
HWmon core receives an array of pointers to hwmon_channel_info and it does not modify it, thus it can be array of const pointers for safety. This allows drivers to make them also const. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/hwmon.h')
-rw-r--r--include/linux/hwmon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h
index c1b62384b6ee..492dd27a5dd8 100644
--- a/include/linux/hwmon.h
+++ b/include/linux/hwmon.h
@@ -430,7 +430,7 @@ struct hwmon_channel_info {
*/
struct hwmon_chip_info {
const struct hwmon_ops *ops;
- const struct hwmon_channel_info **info;
+ const struct hwmon_channel_info * const *info;
};
/* hwmon_device_register() is deprecated */