aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorGravatar Gustavo Rodrigues <ogustavo@usp.br> 2024-04-28 16:43:26 -0300
committerGravatar Jonathan Cameron <Jonathan.Cameron@huawei.com> 2024-04-29 20:57:56 +0100
commit80f87d6bbc6ddcc47969c996649e8a995587e7ae (patch)
tree526cf27615c784fdc5976feb2f7ed6925826c334 /drivers/iio
parentiio: adc: ad799x: add blank line to avoid warning messages (diff)
downloadlinux-80f87d6bbc6ddcc47969c996649e8a995587e7ae.tar.gz
linux-80f87d6bbc6ddcc47969c996649e8a995587e7ae.tar.bz2
linux-80f87d6bbc6ddcc47969c996649e8a995587e7ae.zip
iio: adc: ad799x: Prefer to use octal permission
Octal permissions are preferred over the symbolics ones for readbility. This ceases warning message pointed by checkpatch. Co-developed-by: Bruna Lopes <brunaafl@usp.br> Signed-off-by: Bruna Lopes <brunaafl@usp.br> Signed-off-by: Gustavo Rodrigues <ogustavo@usp.br> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240428194326.2836387-4-ogustavo@usp.br Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/ad799x.c2
1 files changed, 1 insertions, 1 deletions
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 @@ done:
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");