mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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:
parent
073ef1f6e5
commit
acc2472ed3
24 changed files with 26 additions and 26 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue