From 63656e1bd899ac1f5705d041349e8e459ee645a7 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 11 Aug 2023 12:44:50 +0200 Subject: Change permissions and update README --- ina260.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ina260.c') diff --git a/ina260.c b/ina260.c index 8a99b2e..283757c 100644 --- a/ina260.c +++ b/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) }, -- cgit v1.2.3