mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-04-19 16:10:39 +02:00
nv40, nv50: fix backlight build for <2.6.29 kernels
Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
parent
61ff524373
commit
ba41d2df3f
1 changed files with 4 additions and 0 deletions
|
|
@ -60,7 +60,9 @@ static int nv40_set_intensity(struct backlight_device *bd)
|
|||
}
|
||||
|
||||
static struct backlight_ops nv40_bl_ops = {
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
#endif
|
||||
.get_brightness = nv40_get_intensity,
|
||||
.update_status = nv40_set_intensity,
|
||||
};
|
||||
|
|
@ -85,7 +87,9 @@ static int nv50_set_intensity(struct backlight_device *bd)
|
|||
}
|
||||
|
||||
static struct backlight_ops nv50_bl_ops = {
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
#endif
|
||||
.get_brightness = nv50_get_intensity,
|
||||
.update_status = nv50_set_intensity,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue