* [PATCH] rtc: ds1343: replace symbolic permissions with octal
@ 2026-06-12 22:35 Jack Lee
2026-08-19 16:31 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Jack Lee @ 2026-06-12 22:35 UTC (permalink / raw)
To: alexandre.belloni; +Cc: linux-rtc, linux-kernel, Jack Lee
Symbolic permissions S_IRUGO and S_IWUSR are deprecated in favor of
octal permissions. Replace S_IRUGO|S_IWUSR with 0644 and S_IRUGO
with 0444.
Signed-off-by: Jack Lee <skunkolee@gmail.com>
---
drivers/rtc/rtc-ds1343.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-ds1343.c b/drivers/rtc/rtc-ds1343.c
index aa9500791b7e..54f6af7886a8 100644
--- a/drivers/rtc/rtc-ds1343.c
+++ b/drivers/rtc/rtc-ds1343.c
@@ -120,7 +120,7 @@ static ssize_t ds1343_store_glitchfilter(struct device *dev,
return count;
}
-static DEVICE_ATTR(glitch_filter, S_IRUGO | S_IWUSR, ds1343_show_glitchfilter,
+static DEVICE_ATTR(glitch_filter, 0644, ds1343_show_glitchfilter,
ds1343_store_glitchfilter);
static int ds1343_nvram_write(void *priv, unsigned int off, void *val,
@@ -183,7 +183,7 @@ static ssize_t ds1343_show_tricklecharger(struct device *dev,
return sprintf(buf, "%s %s\n", diodes, resistors);
}
-static DEVICE_ATTR(trickle_charger, S_IRUGO, ds1343_show_tricklecharger, NULL);
+static DEVICE_ATTR(trickle_charger, 0444, ds1343_show_tricklecharger, NULL);
static struct attribute *ds1343_attrs[] = {
&dev_attr_glitch_filter.attr,
--
2.54.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] rtc: ds1343: replace symbolic permissions with octal
2026-06-12 22:35 [PATCH] rtc: ds1343: replace symbolic permissions with octal Jack Lee
@ 2026-08-19 16:31 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2026-08-19 16:31 UTC (permalink / raw)
To: Jack Lee; +Cc: linux-rtc, linux-kernel
On Fri, 12 Jun 2026 16:35:34 -0600, Jack Lee wrote:
> Symbolic permissions S_IRUGO and S_IWUSR are deprecated in favor of
> octal permissions. Replace S_IRUGO|S_IWUSR with 0644 and S_IRUGO
> with 0444.
Applied, thanks!
[1/1] rtc: ds1343: replace symbolic permissions with octal
https://git.kernel.org/abelloni/c/2943ec93ee6f
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-19 16:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 22:35 [PATCH] rtc: ds1343: replace symbolic permissions with octal Jack Lee
2026-08-19 16:31 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®