@@ -306,7 +306,7 @@ static ssize_t picolcd_operation_mode_store(struct device *dev,
return count;
}
-static DEVICE_ATTR(operation_mode, 0644, picolcd_operation_mode_show,
+static DEVICE_ATTR(operation_mode, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH, picolcd_operation_mode_show,
picolcd_operation_mode_store);
/*
@@ -334,7 +334,7 @@ static ssize_t picolcd_operation_mode_delay_store(struct device *dev,
return count;
}
-static DEVICE_ATTR(operation_mode_delay, 0644, picolcd_operation_mode_delay_show,
+static DEVICE_ATTR(operation_mode_delay, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH, picolcd_operation_mode_delay_show,
picolcd_operation_mode_delay_store);
/*