mirror of
https://gitlab.com/manzerbredes/ina260-sysfs-driver.git
synced 2025-06-07 15:17:40 +00:00
Change permissions and update README
This commit is contained in:
parent
d43c92e2a1
commit
63656e1bd8
2 changed files with 16 additions and 5 deletions
4
ina260.c
4
ina260.c
|
@ -371,9 +371,9 @@ static const struct attribute_group registers_group = {
|
|||
};
|
||||
// ----- Metrics -----
|
||||
static struct kobj_attribute metric_power_attribute =
|
||||
__ATTR(power, 0664, attr_metric_show, NULL);
|
||||
__ATTR(power, 0444, attr_metric_show, NULL);
|
||||
static struct kobj_attribute metric_voltage_attribute =
|
||||
__ATTR(voltage, 0664, attr_metric_show, NULL);
|
||||
__ATTR(voltage, 0444, attr_metric_show, NULL);
|
||||
static struct kobj_attribute metric_current_attribute = {
|
||||
.attr = {.name = "current", // current is a defined macro so need to do it manually
|
||||
.mode = VERIFY_OCTAL_PERMISSIONS(0444) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue