File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 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);
704704static DEVICE_ATTR_WO (auto_assign );
705705static DEVICE_ATTR_WO (assign_span );
706706static 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+ };
709717static struct attribute * dahdi_device_attrs [] = {
710718 & dev_attr_manufacturer .attr ,
711719 & dev_attr_type .attr ,
You can’t perform that action at this time.
0 commit comments