Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/hwmon/
Dhwmon.c184 struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); in hwmon_attr_show() local
188 ret = hattr->ops->read(dev, hattr->type, hattr->attr, hattr->index, in hwmon_attr_show()
193 trace_hwmon_attr_show(hattr->index + hwmon_attr_base(hattr->type), in hwmon_attr_show()
194 hattr->name, val); in hwmon_attr_show()
203 struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); in hwmon_attr_show_string() local
204 enum hwmon_sensor_types type = hattr->type; in hwmon_attr_show_string()
208 ret = hattr->ops->read_string(dev, hattr->type, hattr->attr, in hwmon_attr_show_string()
209 hattr->index, &s); in hwmon_attr_show_string()
213 trace_hwmon_attr_show_string(hattr->index + hwmon_attr_base(type), in hwmon_attr_show_string()
214 hattr->name, s); in hwmon_attr_show_string()
[all …]