Skip to content

Commit 80f87d6

Browse files
Gustavo Rodriguesjic23
authored andcommitted
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>
1 parent 0fb3e21 commit 80f87d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iio/adc/ad799x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static irqreturn_t ad799x_event_handler(int irq, void *private)
524524
return IRQ_HANDLED;
525525
}
526526

527-
static IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO,
527+
static IIO_DEV_ATTR_SAMP_FREQ(0644,
528528
ad799x_read_frequency,
529529
ad799x_write_frequency);
530530
static IIO_CONST_ATTR_SAMP_FREQ_AVAIL("15625 7812 3906 1953 976 488 244 0");

0 commit comments

Comments
 (0)