Home
last modified time | relevance | path

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

/linux-6.15/drivers/hwmon/
H A Dhwmon.c124 kfree(hattr); in hwmon_free_attrs()
432 ret = hattr->ops->read(dev, hattr->type, hattr->attr, hattr->index, in hwmon_attr_show()
437 trace_hwmon_attr_show(hattr->index + hwmon_attr_base(hattr->type), in hwmon_attr_show()
452 ret = hattr->ops->read_string(dev, hattr->type, hattr->attr, in hwmon_attr_show_string()
475 ret = hattr->ops->write(dev, hattr->type, hattr->attr, hattr->index, in hwmon_attr_store()
480 trace_hwmon_attr_store(hattr->index + hwmon_attr_base(hattr->type), in hwmon_attr_store()
521 hattr = kzalloc(sizeof(*hattr), GFP_KERNEL); in hwmon_genattr()
522 if (!hattr) in hwmon_genattr()
528 scnprintf(hattr->name, sizeof(hattr->name), template, in hwmon_genattr()
533 hattr->type = type; in hwmon_genattr()
[all …]