Home
last modified time | relevance | path

Searched refs:hattr (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/hwmon/
Dhwmon.c179 struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); in hwmon_attr_show() local
183 ret = hattr->ops->read(dev, hattr->type, hattr->attr, hattr->index, in hwmon_attr_show()
195 struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); in hwmon_attr_show_string() local
199 ret = hattr->ops->read_string(dev, hattr->type, hattr->attr, in hwmon_attr_show_string()
200 hattr->index, &s); in hwmon_attr_show_string()
211 struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); in hwmon_attr_store() local
219 ret = hattr->ops->write(dev, hattr->type, hattr->attr, hattr->index, in hwmon_attr_store()
253 struct hwmon_device_attribute *hattr; in hwmon_genattr() local
274 hattr = devm_kzalloc(dev, sizeof(*hattr), GFP_KERNEL); in hwmon_genattr()
275 if (!hattr) in hwmon_genattr()
[all …]