From: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH] Add in-kernel backlight control support
Date: Wed, 18 Feb 2009 13:21:26 +0000 [thread overview]
Message-ID: <20090218132126.GA13672@srcf.ucam.org> (raw)
In-Reply-To: <20090218020825.GA5562-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
Sorry, that broke compiles on <2.6.29. Here's a patch.
diff --git a/linux-core/nouveau_backlight.c b/linux-core/nouveau_backlight.c
index dc75c44..32bb3e5 100644
--- 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,
};
--
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org
prev parent reply other threads:[~2009-02-18 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-18 2:08 [PATCH] Add in-kernel backlight control support Matthew Garrett
[not found] ` <20090218020825.GA5562-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2009-02-18 13:21 ` Matthew Garrett [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090218132126.GA13672@srcf.ucam.org \
--to=mjg59-1xo5oi07kqx4cg9nei1l7q@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.