File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -704,8 +704,16 @@ static DEVICE_ATTR_RO(location);
704
704
static DEVICE_ATTR_WO (auto_assign );
705
705
static DEVICE_ATTR_WO (assign_span );
706
706
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
+ };
709
717
static struct attribute * dahdi_device_attrs [] = {
710
718
& dev_attr_manufacturer .attr ,
711
719
& dev_attr_type .attr ,
You can’t perform that action at this time.
0 commit comments