aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorLionel Debroux <lionel_debroux@yahoo.fr>2010-11-16 08:14:02 -0500
committerJiri Kosina <jkosina@suse.cz>2010-11-16 08:14:02 -0500
commitacc2472ed33fc5e72482cc3b3b846077d97c2f8b (patch)
tree081b0693cce25cc85f11b613d096de91bdfb824b /drivers/gpu
parent073ef1f6e508688392580e4f35dcad9aabd1e100 (diff)
backlight: constify backlight_ops
backlight_device_register has been expecting a const "ops" argument, and using it as such, since 9905a43b2d563e6f89e4c63c4278ada03f2ebb14. Let's make the remaining backlight_ops instances const. Inspired by hunks of the grsecurity patch, updated for newer kernels. Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_backlight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_backlight.c b/drivers/gpu/drm/nouveau/nouveau_backlight.c
index 406228f4a2a0..8933e985c227 100644
--- a/drivers/gpu/drm/nouveau/nouveau_backlight.c
+++ b/drivers/gpu/drm/nouveau/nouveau_backlight.c
@@ -58,7 +58,7 @@ static int nv40_set_intensity(struct backlight_device *bd)
58 return 0; 58 return 0;
59} 59}
60 60
61static struct backlight_ops nv40_bl_ops = { 61static const struct backlight_ops nv40_bl_ops = {
62 .options = BL_CORE_SUSPENDRESUME, 62 .options = BL_CORE_SUSPENDRESUME,
63 .get_brightness = nv40_get_intensity, 63 .get_brightness = nv40_get_intensity,
64 .update_status = nv40_set_intensity, 64 .update_status = nv40_set_intensity,
@@ -81,7 +81,7 @@ static int nv50_set_intensity(struct backlight_device *bd)
81 return 0; 81 return 0;
82} 82}
83 83
84static struct backlight_ops nv50_bl_ops = { 84static const struct backlight_ops nv50_bl_ops = {
85 .options = BL_CORE_SUSPENDRESUME, 85 .options = BL_CORE_SUSPENDRESUME,
86 .get_brightness = nv50_get_intensity, 86 .get_brightness = nv50_get_intensity,
87 .update_status = nv50_set_intensity, 87 .update_status = nv50_set_intensity,