OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96ce587
)
nv40, nv50: fix backlight build for <2.6.29 kernels
author
Matthew Garrett
<mjg59@srcf.ucam.org>
Wed, 18 Feb 2009 13:21:26 +0000
(13:21 +0000)
committer
Pekka Paalanen
<pq@iki.fi>
Wed, 18 Feb 2009 20:31:47 +0000
(22:31 +0200)
Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Pekka Paalanen <pq@iki.fi>
linux-core/nouveau_backlight.c
patch
|
blob
|
history
diff --git
a/linux-core/nouveau_backlight.c
b/linux-core/nouveau_backlight.c
index
dc75c44
..
32bb3e5
100644
(file)
--- a/
linux-core/nouveau_backlight.c
+++ b/
linux-core/nouveau_backlight.c
@@
-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,
};