@@ -187,7 +187,7 @@ static ssize_t adp5520_bl_dark_max_store(struct device *dev,
{
return adp5520_store(dev, buf, count, ADP5520_DARK_MAX);
}
-static DEVICE_ATTR(dark_max, 0664, adp5520_bl_dark_max_show,
+static DEVICE_ATTR(dark_max, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH, adp5520_bl_dark_max_show,
adp5520_bl_dark_max_store);
static ssize_t adp5520_bl_office_max_show(struct device *dev,
@@ -202,7 +202,7 @@ static ssize_t adp5520_bl_office_max_store(struct device *dev,
{
return adp5520_store(dev, buf, count, ADP5520_OFFICE_MAX);
}
-static DEVICE_ATTR(office_max, 0664, adp5520_bl_office_max_show,
+static DEVICE_ATTR(office_max, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH, adp5520_bl_office_max_show,
adp5520_bl_office_max_store);
static ssize_t adp5520_bl_daylight_max_show(struct device *dev,
@@ -224,7 +224,7 @@ static ssize_t adp5520_bl_daylight_max_store(struct device *dev,
return adp5520_store(dev, buf, count, ADP5520_DAYLIGHT_MAX);
}
-static DEVICE_ATTR(daylight_max, 0664, adp5520_bl_daylight_max_show,
+static DEVICE_ATTR(daylight_max, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH, adp5520_bl_daylight_max_show,
adp5520_bl_daylight_max_store);
static ssize_t adp5520_bl_dark_dim_show(struct device *dev,
@@ -239,7 +239,7 @@ static ssize_t adp5520_bl_dark_dim_store(struct device *dev,
{
return adp5520_store(dev, buf, count, ADP5520_DARK_DIM);
}
-static DEVICE_ATTR(dark_dim, 0664, adp5520_bl_dark_dim_show,
+static DEVICE_ATTR(dark_dim, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH, adp5520_bl_dark_dim_show,
adp5520_bl_dark_dim_store);
static ssize_t adp5520_bl_office_dim_show(struct device *dev,
@@ -254,7 +254,7 @@ static ssize_t adp5520_bl_office_dim_store(struct device *dev,
{
return adp5520_store(dev, buf, count, ADP5520_OFFICE_DIM);
}
-static DEVICE_ATTR(office_dim, 0664, adp5520_bl_office_dim_show,
+static DEVICE_ATTR(office_dim, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH, adp5520_bl_office_dim_show,
adp5520_bl_office_dim_store);
static ssize_t adp5520_bl_daylight_dim_show(struct device *dev,
@@ -269,7 +269,7 @@ static ssize_t adp5520_bl_daylight_dim_store(struct device *dev,
{
return adp5520_store(dev, buf, count, ADP5520_DAYLIGHT_DIM);
}
-static DEVICE_ATTR(daylight_dim, 0664, adp5520_bl_daylight_dim_show,
+static DEVICE_ATTR(daylight_dim, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH, adp5520_bl_daylight_dim_show,
adp5520_bl_daylight_dim_store);
static struct attribute *adp5520_bl_attributes[] = {