mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Reviewed-by: Peter Huewe <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
b3ee2785ee
commit
5ba6bcbc33
2 changed files with 2 additions and 2 deletions
|
|
@ -186,7 +186,7 @@ static ssize_t hwmon_attr_show_string(struct device *dev,
|
|||
char *buf)
|
||||
{
|
||||
struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr);
|
||||
char *s;
|
||||
const char *s;
|
||||
int ret;
|
||||
|
||||
ret = hattr->ops->read_string(dev, hattr->type, hattr->attr,
|
||||
|
|
|
|||
Loading…
Reference in a new issue