Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bhumika Goyal and committed by
Greg Kroah-Hartman
061c0958 8f3addf1

+2 -2
+2 -2
drivers/fsi/fsi-core.c
··· 475 475 return count; 476 476 } 477 477 478 - static struct bin_attribute fsi_slave_raw_attr = { 478 + static const struct bin_attribute fsi_slave_raw_attr = { 479 479 .attr = { 480 480 .name = "raw", 481 481 .mode = 0600, ··· 499 499 return count; 500 500 } 501 501 502 - static struct bin_attribute fsi_slave_term_attr = { 502 + static const struct bin_attribute fsi_slave_term_attr = { 503 503 .attr = { 504 504 .name = "term", 505 505 .mode = 0200,