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

video: fbdev: add const to bin_attribute structures

Add const to bin_attribute structures as they are only passed to the
functions sysfs_{remove/create}_bin_file or
device_{remove/create}_bin_file. The corresponding arguments are of
type const, so declare the structures to be const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Bhumika Goyal and committed by
Bartlomiej Zolnierkiewicz
598b2eed 228b3811

+3 -3
+2 -2
drivers/video/fbdev/aty/radeon_base.c
··· 2241 2241 return radeon_show_one_edid(buf, off, count, rinfo->mon2_EDID); 2242 2242 } 2243 2243 2244 - static struct bin_attribute edid1_attr = { 2244 + static const struct bin_attribute edid1_attr = { 2245 2245 .attr = { 2246 2246 .name = "edid1", 2247 2247 .mode = 0444, ··· 2250 2250 .read = radeon_show_edid1, 2251 2251 }; 2252 2252 2253 - static struct bin_attribute edid2_attr = { 2253 + static const struct bin_attribute edid2_attr = { 2254 2254 .attr = { 2255 2255 .name = "edid2", 2256 2256 .mode = 0444,
+1 -1
drivers/video/fbdev/udlfb.c
··· 1465 1465 return count; 1466 1466 } 1467 1467 1468 - static struct bin_attribute edid_attr = { 1468 + static const struct bin_attribute edid_attr = { 1469 1469 .attr.name = "edid", 1470 1470 .attr.mode = 0666, 1471 1471 .size = EDID_LENGTH,