Skip to content

Commit b4be271

Browse files
rtc: ds1307: use octal permissions
Octal permissions are preferred over symbolic permissions. Signed-off-by: Alexandre Belloni <[email protected]>
1 parent e69c056 commit b4be271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-ds1307.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ static ssize_t ds3231_hwmon_show_temp(struct device *dev,
10511051

10521052
return sprintf(buf, "%d\n", temp);
10531053
}
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,
10551055
NULL, 0);
10561056

10571057
static struct attribute *ds3231_hwmon_attrs[] = {

0 commit comments

Comments
 (0)