backlight: constify backlight_ops

backlight_device_register has been expecting a const "ops" argument, and using
it as such, since 9905a43b2d. 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 <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
Lionel Debroux 2010-11-16 14:14:02 +01:00 • committed by Jiri Kosina
commit acc2472ed3
24 changed files with 26 additions and 26 deletions

View file

@ -15,7 +15,7 @@
#define MAX_PMU_LEVEL 0xFF
static struct backlight_ops pmu_backlight_data;
static const struct backlight_ops pmu_backlight_data;
static DEFINE_SPINLOCK(pmu_backlight_lock);
static int sleeping, uses_pmu_bl;
static u8 bl_curve[FB_BACKLIGHT_LEVELS];
@ -115,7 +115,7 @@ static int pmu_backlight_get_brightness(struct backlight_device *bd)
return bd->props.brightness;
}
static struct backlight_ops pmu_backlight_data = {
static const struct backlight_ops pmu_backlight_data = {
.get_brightness = pmu_backlight_get_brightness,
.update_status = pmu_backlight_update_status,