diff mbox

s2250: Fix write_reg i2c address

Message ID 1263420948.4697.313.camel@pete-desktop (mailing list archive)
State Accepted
Headers show

Commit Message

Pete Eberlein Jan. 13, 2010, 10:15 p.m. UTC
None
diff mbox

Patch

diff -r 3a4be7d7dabd -r 134a95c0d98b linux/drivers/staging/go7007/s2250-board.c
--- a/linux/drivers/staging/go7007/s2250-board.c	Sun Jan 03 17:04:42 2010 +0000
+++ b/linux/drivers/staging/go7007/s2250-board.c	Wed Jan 13 14:11:48 2010 -0800
@@ -159,7 +159,7 @@ 
 	struct go7007 *go = i2c_get_adapdata(client->adapter);
 	struct go7007_usb *usb;
 	int rc;
-	int dev_addr = client->addr;
+	int dev_addr = client->addr << 1;  /* firmware wants 8-bit address */
 	u8 *buf;
 
 	if (go == NULL)