All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gmux: Fix backlight set function
@ 2012-09-13 20:02 Grant Likely
  2012-09-13 20:26 ` Seth Forshee
  2012-09-13 20:35 ` David Woodhouse
  0 siblings, 2 replies; 7+ messages in thread
From: Grant Likely @ 2012-09-13 20:02 UTC (permalink / raw)
  To: platform-driver-x86, linux-kernel; +Cc: Grant Likely, Matthew Garrett

In commit 7e30ed6b, "gmux: Add generic write32 function", the new
gmux_write32() function didn't include the io offset when writing
registers. This means that backlight update writes never go to the right
place. This patch fixes it.

Tested on Apple Macbook 8,3

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Matthew Garrett <mjg@redhat.com>
---
 drivers/platform/x86/apple-gmux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/apple-gmux.c b/drivers/platform/x86/apple-gmux.c
index dfb1a92..ee21056 100644
--- a/drivers/platform/x86/apple-gmux.c
+++ b/drivers/platform/x86/apple-gmux.c
@@ -101,7 +101,7 @@ static void gmux_pio_write32(struct apple_gmux_data *gmux_data, int port,
 
 	for (i = 0; i < 4; i++) {
 		tmpval = (val >> (i * 8)) & 0xff;
-		outb(tmpval, port + i);
+		outb(tmpval, gmux_data->iostart + port + i);
 	}
 }
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-04 10:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-13 20:02 [PATCH] gmux: Fix backlight set function Grant Likely
2012-09-13 20:26 ` Seth Forshee
2012-09-13 20:31   ` Matthew Garrett
2012-09-13 20:35 ` David Woodhouse
2012-09-14 13:06   ` Grant Likely
2012-09-17  9:37     ` David Woodhouse
2012-10-04 10:53     ` David Woodhouse

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.