@@ -56,7 +56,7 @@ static struct vpd_section ro_vpd;
56
56
static struct vpd_section rw_vpd ;
57
57
58
58
static ssize_t vpd_attrib_read (struct file * filp , struct kobject * kobp ,
59
- struct bin_attribute * bin_attr , char * buf ,
59
+ const struct bin_attribute * bin_attr , char * buf ,
60
60
loff_t pos , size_t count )
61
61
{
62
62
struct vpd_attrib_info * info = bin_attr -> private ;
@@ -121,7 +121,7 @@ static int vpd_section_attrib_add(const u8 *key, u32 key_len,
121
121
info -> bin_attr .attr .name = info -> key ;
122
122
info -> bin_attr .attr .mode = 0444 ;
123
123
info -> bin_attr .size = value_len ;
124
- info -> bin_attr .read = vpd_attrib_read ;
124
+ info -> bin_attr .read_new = vpd_attrib_read ;
125
125
info -> bin_attr .private = info ;
126
126
127
127
info -> value = value ;
@@ -156,7 +156,7 @@ static void vpd_section_attrib_destroy(struct vpd_section *sec)
156
156
}
157
157
158
158
static ssize_t vpd_section_read (struct file * filp , struct kobject * kobp ,
159
- struct bin_attribute * bin_attr , char * buf ,
159
+ const struct bin_attribute * bin_attr , char * buf ,
160
160
loff_t pos , size_t count )
161
161
{
162
162
struct vpd_section * sec = bin_attr -> private ;
@@ -201,7 +201,7 @@ static int vpd_section_init(const char *name, struct vpd_section *sec,
201
201
sec -> bin_attr .attr .name = sec -> raw_name ;
202
202
sec -> bin_attr .attr .mode = 0444 ;
203
203
sec -> bin_attr .size = size ;
204
- sec -> bin_attr .read = vpd_section_read ;
204
+ sec -> bin_attr .read_new = vpd_section_read ;
205
205
sec -> bin_attr .private = sec ;
206
206
207
207
err = sysfs_create_bin_file (vpd_kobj , & sec -> bin_attr );
0 commit comments