@@ -50,7 +50,7 @@ static struct attribute *spi_nor_sysfs_entries[] = {
50
50
};
51
51
52
52
static ssize_t sfdp_read (struct file * filp , struct kobject * kobj ,
53
- struct bin_attribute * bin_attr , char * buf ,
53
+ const struct bin_attribute * bin_attr , char * buf ,
54
54
loff_t off , size_t count )
55
55
{
56
56
struct spi_device * spi = to_spi_device (kobj_to_dev (kobj ));
@@ -62,9 +62,9 @@ static ssize_t sfdp_read(struct file *filp, struct kobject *kobj,
62
62
return memory_read_from_buffer (buf , count , & off , nor -> sfdp -> dwords ,
63
63
sfdp_size );
64
64
}
65
- static BIN_ATTR_RO (sfdp , 0 ) ;
65
+ static const BIN_ATTR_RO (sfdp , 0 ) ;
66
66
67
- static struct bin_attribute * spi_nor_sysfs_bin_entries [] = {
67
+ static const struct bin_attribute * const spi_nor_sysfs_bin_entries [] = {
68
68
& bin_attr_sfdp ,
69
69
NULL
70
70
};
@@ -104,7 +104,7 @@ static const struct attribute_group spi_nor_sysfs_group = {
104
104
.is_visible = spi_nor_sysfs_is_visible ,
105
105
.is_bin_visible = spi_nor_sysfs_is_bin_visible ,
106
106
.attrs = spi_nor_sysfs_entries ,
107
- .bin_attrs = spi_nor_sysfs_bin_entries ,
107
+ .bin_attrs_new = spi_nor_sysfs_bin_entries ,
108
108
};
109
109
110
110
const struct attribute_group * spi_nor_sysfs_groups [] = {
0 commit comments