Skip to content

Commit 061c095

Browse files
goyalbhumikagregkh
authored andcommitted
drivers/fsi: add const to bin_attribute structures
Declare bin_attribute structures as const as they are only passed as an argument to the function device_create_bin_file. This argument is of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8f3addf commit 061c095

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/fsi/fsi-core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static ssize_t fsi_slave_sysfs_raw_write(struct file *file,
475475
return count;
476476
}
477477

478-
static struct bin_attribute fsi_slave_raw_attr = {
478+
static const struct bin_attribute fsi_slave_raw_attr = {
479479
.attr = {
480480
.name = "raw",
481481
.mode = 0600,
@@ -499,7 +499,7 @@ static ssize_t fsi_slave_sysfs_term_write(struct file *file,
499499
return count;
500500
}
501501

502-
static struct bin_attribute fsi_slave_term_attr = {
502+
static const struct bin_attribute fsi_slave_term_attr = {
503503
.attr = {
504504
.name = "term",
505505
.mode = 0200,

0 commit comments

Comments
 (0)