diff mbox

[xf86-video-intel] sna: Fix OpenBSD backlight control implementation

Message ID 1364247635-5074-1-git-send-email-mark.kettenis@xs4all.nl (mailing list archive)
State New, archived
Headers show

Commit Message

Mark Kettenis March 25, 2013, 9:40 p.m. UTC
From: Mark Kettenis <kettenis@openbsd.org>

Fix cut'n'paste error such that this actually compiles.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
---
 src/sna/sna_display.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Chris Wilson March 26, 2013, 9:06 a.m. UTC | #1
On Mon, Mar 25, 2013 at 10:40:35PM +0100, Mark Kettenis wrote:
> From: Mark Kettenis <kettenis@openbsd.org>
> 
> Fix cut'n'paste error such that this actually compiles.

Mea culpa. Thanks a lot,
-Chris
Mark Kettenis March 26, 2013, 7:57 p.m. UTC | #2
> Date: Tue, 26 Mar 2013 09:06:54 +0000
> From: Chris Wilson <chris@chris-wilson.co.uk>
> 
> On Mon, Mar 25, 2013 at 10:40:35PM +0100, Mark Kettenis wrote:
> > From: Mark Kettenis <kettenis@openbsd.org>
> > 
> > Fix cut'n'paste error such that this actually compiles.
> 
> Mea culpa. Thanks a lot,

No problem Chris.  The SNA code isn't compiled yet on OpenBSD.  The
change I just submitted will change that.  I saw you handled the
execbuffer2 memset already.  Thanks!  The SNA code doesn't work very
well yet though on OpenBSD.  Hunting for the remaining bugs in the
our kernel code now.
diff mbox

Patch

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 7891c8d..6d61650 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -257,9 +257,9 @@  sna_output_backlight_init(xf86OutputPtr output)
 
 	DBG(("%s: found 'wscons'\n", __FUNCTION__));
 
-	intel_output->backlight_iface = "wscons";
-	intel_output->backlight_max = param.max;
-	intel_output->backlight_active_level = param.curval;
+	sna_output->backlight_iface = "wscons";
+	sna_output->backlight_max = param.max;
+	sna_output->backlight_active_level = param.curval;
 }
 
 #else