[PATCH] various fbdev files: mark structs and array read-only
- move some structs and arrays to the read-only (.rodata) section [akpm@osdl.org: build fix] Signed-off-by: Helge Deller <deller@gmx.de> Acked-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
adf6b20654
commit
d95159cf1b
@@ -121,7 +121,7 @@ static struct class lcd_class = {
|
||||
.store = _store, \
|
||||
}
|
||||
|
||||
static struct class_device_attribute lcd_class_device_attributes[] = {
|
||||
static const struct class_device_attribute lcd_class_device_attributes[] = {
|
||||
DECLARE_ATTR(power, 0644, lcd_show_power, lcd_store_power),
|
||||
DECLARE_ATTR(contrast, 0644, lcd_show_contrast, lcd_store_contrast),
|
||||
DECLARE_ATTR(max_contrast, 0444, lcd_show_max_contrast, NULL),
|
||||
|
Reference in New Issue
Block a user