[Nouveau] [PATCH] drm/nouveau/i2c: correct default settings for i2c ports

Dmitry Eremin-Solenikov dmitry_eremin at mentor.com
Sat Sep 22 10:33:50 PDT 2012


Fix typo introduced when converting to core infrastructure.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin at mentor.com>
---
 drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
index 5fcce5d..ad577db 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c
@@ -112,13 +112,13 @@ dcb_i2c_parse(struct nouveau_bios *bios, u8 idx, struct dcb_i2c_entry *info)
 			info->drive = nv_ro08(bios, ent + 4);
 			if (!info->drive) info->drive = 0x3f;
 			info->sense = nv_ro08(bios, ent + 5);
-			if (!info->sense) info->drive = 0x3e;
+			if (!info->sense) info->sense = 0x3e;
 		} else
 		if (idx == 1) {
 			info->drive = nv_ro08(bios, ent + 6);
 			if (!info->drive) info->drive = 0x37;
 			info->sense = nv_ro08(bios, ent + 7);
-			if (!info->sense) info->drive = 0x36;
+			if (!info->sense) info->sense = 0x36;
 		}
 
 		info->type = DCB_I2C_NV04_BIT;
-- 
1.7.10.4



More information about the Nouveau mailing list