[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240426012313.2295067-4-gustavenrique01@gmail.com>
Date: Thu, 25 Apr 2024 22:23:13 -0300
From: Gustavo <ogustavo@....br>
To: lars@...afoo.de,
Michael.Hennerich@...log.com,
jic23@...nel.org
Cc: Gustavo <gustavenrique01@...il.com>,
linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org,
Bruna Lopes <brunaafl@....br>
Subject: [PATCH 3/3] iio: adc: ad799x: Prefer to use octal permission instead of symbolic
Octal permissions are preferred over the symbolics ones
for readbility.
Co-developed-by: Bruna Lopes <brunaafl@....br>
Signed-off-by: Bruna Lopes <brunaafl@....br>
Signed-off-by: Gustavo <gustavenrique01@...il.com>
---
drivers/iio/adc/ad799x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c
index 9a12e562c259..0f0dcd9ca6b6 100644
--- a/drivers/iio/adc/ad799x.c
+++ b/drivers/iio/adc/ad799x.c
@@ -524,7 +524,7 @@ static irqreturn_t ad799x_event_handler(int irq, void *private)
return IRQ_HANDLED;
}
-static IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO,
+static IIO_DEV_ATTR_SAMP_FREQ(0644,
ad799x_read_frequency,
ad799x_write_frequency);
static IIO_CONST_ATTR_SAMP_FREQ_AVAIL("15625 7812 3906 1953 976 488 244 0");
--
2.34.1
Powered by blists - more mailing lists