projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc3ad66
)
hwmon: tmp103: constify pointers to hwmon_channel_info
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Thu, 6 Apr 2023 20:40:21 +0000
(22:40 +0200)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 19 Apr 2023 14:08:38 +0000
(07:08 -0700)
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>
drivers/hwmon/tmp103.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/tmp103.c
b/drivers/hwmon/tmp103.c
index 56d5cbf36a45b4e5a499072d45521e4e2bef9c9d..d257bb91fc6954c456f4fdbb0fe50e4cf9aac79a 100644
(file)
--- a/
drivers/hwmon/tmp103.c
+++ b/
drivers/hwmon/tmp103.c
@@
-119,7
+119,7
@@
static umode_t tmp103_is_visible(const void *data, enum hwmon_sensor_types type,
}
}
-static const struct hwmon_channel_info *tmp103_info[] = {
+static const struct hwmon_channel_info *
const
tmp103_info[] = {
HWMON_CHANNEL_INFO(chip,
HWMON_C_REGISTER_TZ),
HWMON_CHANNEL_INFO(temp,