rtc: ds1307: use octal permissions
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 4 Sep 2017 20:46:08 +0000 (22:46 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 5 Sep 2017 07:55:05 +0000 (09:55 +0200)
Octal permissions are preferred over symbolic permissions.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1307.c

index 9df50db228c6dfa80263688ce76c0b4fcb2a076d..9d680d36afc03118950c6ad748b49792373b6ae6 100644 (file)
@@ -1051,7 +1051,7 @@ static ssize_t ds3231_hwmon_show_temp(struct device *dev,
 
        return sprintf(buf, "%d\n", temp);
 }
-static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, ds3231_hwmon_show_temp,
+static SENSOR_DEVICE_ATTR(temp1_input, 0444, ds3231_hwmon_show_temp,
                          NULL, 0);
 
 static struct attribute *ds3231_hwmon_attrs[] = {