@@ -106,7 +106,7 @@ static void devcd_del(struct work_struct *wk)
106
106
}
107
107
108
108
static ssize_t devcd_data_read (struct file * filp , struct kobject * kobj ,
109
- struct bin_attribute * bin_attr ,
109
+ const struct bin_attribute * bin_attr ,
110
110
char * buffer , loff_t offset , size_t count )
111
111
{
112
112
struct device * dev = kobj_to_dev (kobj );
@@ -116,7 +116,7 @@ static ssize_t devcd_data_read(struct file *filp, struct kobject *kobj,
116
116
}
117
117
118
118
static ssize_t devcd_data_write (struct file * filp , struct kobject * kobj ,
119
- struct bin_attribute * bin_attr ,
119
+ const struct bin_attribute * bin_attr ,
120
120
char * buffer , loff_t offset , size_t count )
121
121
{
122
122
struct device * dev = kobj_to_dev (kobj );
@@ -132,15 +132,15 @@ static ssize_t devcd_data_write(struct file *filp, struct kobject *kobj,
132
132
return count ;
133
133
}
134
134
135
- static struct bin_attribute devcd_attr_data =
135
+ static const struct bin_attribute devcd_attr_data =
136
136
__BIN_ATTR (data , 0600 , devcd_data_read , devcd_data_write , 0 );
137
137
138
- static struct bin_attribute * devcd_dev_bin_attrs [] = {
138
+ static const struct bin_attribute * const devcd_dev_bin_attrs [] = {
139
139
& devcd_attr_data , NULL ,
140
140
};
141
141
142
142
static const struct attribute_group devcd_dev_group = {
143
- .bin_attrs = devcd_dev_bin_attrs ,
143
+ .bin_attrs_new = devcd_dev_bin_attrs ,
144
144
};
145
145
146
146
static const struct attribute_group * devcd_dev_groups [] = {
0 commit comments