From: Antonino A. Daplas Date: Tue, 8 May 2007 07:38:22 +0000 (-0700) Subject: rivafb: fixed reversed DDC ports X-Git-Tag: v2.6.22-rc1~432 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0404384982b2f71eb00573c8f9da514106aca08c;p=linux-2.6 rivafb: fixed reversed DDC ports Fixed reversed DDC port so assignments are congruent with nvidiafb's and X's nv driver. Signed-off-by: Antonino Daplas Cc: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/riva/rivafb-i2c.c b/drivers/video/riva/rivafb-i2c.c index bcb209670a..76e6ce353c 100644 --- a/drivers/video/riva/rivafb-i2c.c +++ b/drivers/video/riva/rivafb-i2c.c @@ -133,11 +133,11 @@ void __devinit riva_create_i2c_busses(struct riva_par *par) par->chan[1].par = par; par->chan[2].par = par; - par->chan[0].ddc_base = 0x3e; - par->chan[1].ddc_base = 0x36; + par->chan[0].ddc_base = 0x36; + par->chan[1].ddc_base = 0x3e; par->chan[2].ddc_base = 0x50; - riva_setup_i2c_bus(&par->chan[0], "BUS1", 0); - riva_setup_i2c_bus(&par->chan[1], "BUS2", I2C_CLASS_HWMON); + riva_setup_i2c_bus(&par->chan[0], "BUS1", I2C_CLASS_HWMON); + riva_setup_i2c_bus(&par->chan[1], "BUS2", 0); riva_setup_i2c_bus(&par->chan[2], "BUS3", 0); }