Skip to content

Commit d932d9f

Browse files
ursfasslerpush143smart
authored andcommitted
fix missing spantype file from dahdi-tools
1 parent d7bbc8a commit d932d9f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

drivers/dahdi/dahdi-sysfs.c

+10-2
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,16 @@ static DEVICE_ATTR_RO(location);
704704
static DEVICE_ATTR_WO(auto_assign);
705705
static DEVICE_ATTR_WO(assign_span);
706706
static DEVICE_ATTR_WO(unassign_span);
707-
static DEVICE_ATTR_RW(dahdi_spantype);
708-
static DEVICE_ATTR_RO(dahdi_registration_time);
707+
static struct device_attribute dev_attr_dahdi_spantype = {
708+
.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+
};
709717
static struct attribute *dahdi_device_attrs[] = {
710718
&dev_attr_manufacturer.attr,
711719
&dev_attr_type.attr,

0 commit comments

Comments
 (0)