We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7bbc8a commit d932d9fCopy full SHA for d932d9f
drivers/dahdi/dahdi-sysfs.c
@@ -704,8 +704,16 @@ static DEVICE_ATTR_RO(location);
704
static DEVICE_ATTR_WO(auto_assign);
705
static DEVICE_ATTR_WO(assign_span);
706
static DEVICE_ATTR_WO(unassign_span);
707
-static DEVICE_ATTR_RW(dahdi_spantype);
708
-static DEVICE_ATTR_RO(dahdi_registration_time);
+static struct device_attribute dev_attr_dahdi_spantype = {
+ .attr = { .name = "spantype", .mode = 0644 },
709
+ .show = dahdi_spantype_show,
710
+ .store = dahdi_spantype_store,
711
+};
712
+static struct device_attribute dev_attr_dahdi_registration_time = {
713
+ .attr = { .name = "registration_time", .mode = 0444 },
714
+ .show = dahdi_registration_time_show,
715
+ .store = NULL,
716
717
static struct attribute *dahdi_device_attrs[] = {
718
&dev_attr_manufacturer.attr,
719
&dev_attr_type.attr,
0 commit comments