diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-09-04 16:46:08 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-09-05 03:55:05 -0400 |
commit | b4be271cebb6f8b475f8bf2199091be8fe4c4278 (patch) | |
tree | 7a5545bafc8e1b519904933356c2bcbe25e14ef5 | |
parent | e69c056714974733aeb3ff114e9d434ea864d818 (diff) |
rtc: ds1307: use octal permissions
Octal permissions are preferred over symbolic permissions.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 9df50db228c6..9d680d36afc0 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c | |||
@@ -1051,7 +1051,7 @@ static ssize_t ds3231_hwmon_show_temp(struct device *dev, | |||
1051 | 1051 | ||
1052 | return sprintf(buf, "%d\n", temp); | 1052 | return sprintf(buf, "%d\n", temp); |
1053 | } | 1053 | } |
1054 | static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, ds3231_hwmon_show_temp, | 1054 | static SENSOR_DEVICE_ATTR(temp1_input, 0444, ds3231_hwmon_show_temp, |
1055 | NULL, 0); | 1055 | NULL, 0); |
1056 | 1056 | ||
1057 | static struct attribute *ds3231_hwmon_attrs[] = { | 1057 | static struct attribute *ds3231_hwmon_attrs[] = { |