[PATCH] various fbdev files: mark structs and array read-only
[firefly-linux-kernel-4.4.55.git] / drivers / video / backlight / backlight.c
index 27597c576eff3f4cb0a116dee1d682f8ce4f9383..f439a588394ae5b0b62781211b5c46fa06d9322c 100644 (file)
@@ -142,7 +142,7 @@ static struct class backlight_class = {
        .store  = _store,                                       \
 }
 
-static struct class_device_attribute bl_class_device_attributes[] = {
+static const struct class_device_attribute bl_class_device_attributes[] = {
        DECLARE_ATTR(power, 0644, backlight_show_power, backlight_store_power),
        DECLARE_ATTR(brightness, 0644, backlight_show_brightness,
                     backlight_store_brightness),