10
10
11
11
static ssize_t
12
12
qla4_8xxx_sysfs_read_fw_dump (struct file * filep , struct kobject * kobj ,
13
- struct bin_attribute * ba , char * buf , loff_t off ,
13
+ const struct bin_attribute * ba , char * buf , loff_t off ,
14
14
size_t count )
15
15
{
16
16
struct scsi_qla_host * ha = to_qla_host (dev_to_shost (container_of (kobj ,
@@ -28,7 +28,7 @@ qla4_8xxx_sysfs_read_fw_dump(struct file *filep, struct kobject *kobj,
28
28
29
29
static ssize_t
30
30
qla4_8xxx_sysfs_write_fw_dump (struct file * filep , struct kobject * kobj ,
31
- struct bin_attribute * ba , char * buf , loff_t off ,
31
+ const struct bin_attribute * ba , char * buf , loff_t off ,
32
32
size_t count )
33
33
{
34
34
struct scsi_qla_host * ha = to_qla_host (dev_to_shost (container_of (kobj ,
@@ -104,19 +104,19 @@ qla4_8xxx_sysfs_write_fw_dump(struct file *filep, struct kobject *kobj,
104
104
return count ;
105
105
}
106
106
107
- static struct bin_attribute sysfs_fw_dump_attr = {
107
+ static const struct bin_attribute sysfs_fw_dump_attr = {
108
108
.attr = {
109
109
.name = "fw_dump" ,
110
110
.mode = S_IRUSR | S_IWUSR ,
111
111
},
112
112
.size = 0 ,
113
- .read = qla4_8xxx_sysfs_read_fw_dump ,
114
- .write = qla4_8xxx_sysfs_write_fw_dump ,
113
+ .read_new = qla4_8xxx_sysfs_read_fw_dump ,
114
+ .write_new = qla4_8xxx_sysfs_write_fw_dump ,
115
115
};
116
116
117
117
static struct sysfs_entry {
118
118
char * name ;
119
- struct bin_attribute * attr ;
119
+ const struct bin_attribute * attr ;
120
120
} bin_file_entries [] = {
121
121
{ "fw_dump" , & sysfs_fw_dump_attr },
122
122
{ NULL },
0 commit comments