@@ -96,7 +96,7 @@ static int twl_reset_device_extension(TW_Device_Extension *tw_dev, int ioctl_res
96
96
97
97
/* This function returns AENs through sysfs */
98
98
static ssize_t twl_sysfs_aen_read (struct file * filp , struct kobject * kobj ,
99
- struct bin_attribute * bin_attr ,
99
+ const struct bin_attribute * bin_attr ,
100
100
char * outbuf , loff_t offset , size_t count )
101
101
{
102
102
struct device * dev = container_of (kobj , struct device , kobj );
@@ -116,18 +116,18 @@ static ssize_t twl_sysfs_aen_read(struct file *filp, struct kobject *kobj,
116
116
} /* End twl_sysfs_aen_read() */
117
117
118
118
/* aen_read sysfs attribute initializer */
119
- static struct bin_attribute twl_sysfs_aen_read_attr = {
119
+ static const struct bin_attribute twl_sysfs_aen_read_attr = {
120
120
.attr = {
121
121
.name = "3ware_aen_read" ,
122
122
.mode = S_IRUSR ,
123
123
},
124
124
.size = 0 ,
125
- .read = twl_sysfs_aen_read
125
+ .read_new = twl_sysfs_aen_read
126
126
};
127
127
128
128
/* This function returns driver compatibility info through sysfs */
129
129
static ssize_t twl_sysfs_compat_info (struct file * filp , struct kobject * kobj ,
130
- struct bin_attribute * bin_attr ,
130
+ const struct bin_attribute * bin_attr ,
131
131
char * outbuf , loff_t offset , size_t count )
132
132
{
133
133
struct device * dev = container_of (kobj , struct device , kobj );
@@ -147,13 +147,13 @@ static ssize_t twl_sysfs_compat_info(struct file *filp, struct kobject *kobj,
147
147
} /* End twl_sysfs_compat_info() */
148
148
149
149
/* compat_info sysfs attribute initializer */
150
- static struct bin_attribute twl_sysfs_compat_info_attr = {
150
+ static const struct bin_attribute twl_sysfs_compat_info_attr = {
151
151
.attr = {
152
152
.name = "3ware_compat_info" ,
153
153
.mode = S_IRUSR ,
154
154
},
155
155
.size = 0 ,
156
- .read = twl_sysfs_compat_info
156
+ .read_new = twl_sysfs_compat_info
157
157
};
158
158
159
159
/* Show some statistics about the card */
0 commit comments