@@ -1047,33 +1047,6 @@ static const struct attribute_group tlmi_attr_group = {
1047
1047
.attrs = tlmi_attrs ,
1048
1048
};
1049
1049
1050
- static ssize_t tlmi_attr_show (struct kobject * kobj , struct attribute * attr ,
1051
- char * buf )
1052
- {
1053
- struct kobj_attribute * kattr ;
1054
-
1055
- kattr = container_of (attr , struct kobj_attribute , attr );
1056
- if (kattr -> show )
1057
- return kattr -> show (kobj , kattr , buf );
1058
- return - EIO ;
1059
- }
1060
-
1061
- static ssize_t tlmi_attr_store (struct kobject * kobj , struct attribute * attr ,
1062
- const char * buf , size_t count )
1063
- {
1064
- struct kobj_attribute * kattr ;
1065
-
1066
- kattr = container_of (attr , struct kobj_attribute , attr );
1067
- if (kattr -> store )
1068
- return kattr -> store (kobj , kattr , buf , count );
1069
- return - EIO ;
1070
- }
1071
-
1072
- static const struct sysfs_ops tlmi_kobj_sysfs_ops = {
1073
- .show = tlmi_attr_show ,
1074
- .store = tlmi_attr_store ,
1075
- };
1076
-
1077
1050
static void tlmi_attr_setting_release (struct kobject * kobj )
1078
1051
{
1079
1052
struct tlmi_attr_setting * setting = to_tlmi_attr_setting (kobj );
@@ -1091,12 +1064,12 @@ static void tlmi_pwd_setting_release(struct kobject *kobj)
1091
1064
1092
1065
static const struct kobj_type tlmi_attr_setting_ktype = {
1093
1066
.release = & tlmi_attr_setting_release ,
1094
- .sysfs_ops = & tlmi_kobj_sysfs_ops ,
1067
+ .sysfs_ops = & kobj_sysfs_ops ,
1095
1068
};
1096
1069
1097
1070
static const struct kobj_type tlmi_pwd_setting_ktype = {
1098
1071
.release = & tlmi_pwd_setting_release ,
1099
- .sysfs_ops = & tlmi_kobj_sysfs_ops ,
1072
+ .sysfs_ops = & kobj_sysfs_ops ,
1100
1073
};
1101
1074
1102
1075
static ssize_t pending_reboot_show (struct kobject * kobj , struct kobj_attribute * attr ,
0 commit comments