summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2017-03-07 17:15:15 +0300
committerGuenter Roeck <linux@roeck-us.net>2017-04-02 17:01:53 +0300
commit5ba6bcbc335771c37d05b88cbfcad5441b57130b (patch)
tree1a301acb5a1874ba93adbdd3c59d3b0d08b43db7 /include
parentb3ee2785eedaaaf2fe4166594953ddcb2a85c415 (diff)
downloadlinux-5ba6bcbc335771c37d05b88cbfcad5441b57130b.tar.xz
hwmon: Constify str parameter of hwmon_ops->read_string
The read_string callback is supposed to retrieve a pointer to a constant string. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include')
-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 88b673749121..ceb751987c40 100644
--- a/include/linux/hwmon.h
+++ b/include/linux/hwmon.h
@@ -337,7 +337,7 @@ struct hwmon_ops {
int (*read)(struct device *dev, enum hwmon_sensor_types type,
u32 attr, int channel, long *val);
int (*read_string)(struct device *dev, enum hwmon_sensor_types type,
- u32 attr, int channel, char **str);
+ u32 attr, int channel, const char **str);
int (*write)(struct device *dev, enum hwmon_sensor_types type,
u32 attr, int channel, long val);
};