linux/drivers/video/via
Harald Welte 277d32a36c viafb: rework the I2C support in the VIA framebuffer driver
This patch changes the way how the various I2C busses are used internally
inside the viafb driver:  Previosuly, only a single i2c_adapter was created,
even though two different hardware I2C busses are accessed: A structure member
in a global variable was modified to indicate the bus to be used.

Now, all existing hardware busses are registered with the i2c core, and the
viafb_i2c_{read,write}byte[s]() function take the adapter number as function
call parameter, rather than referring to the global structure member.

[jc: even more painful merge with mainline changes ->2.6.34]
[jc: painful merge with OLPC changes]

Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: ScottFang@viatech.com.cn
Cc: JosephChan@via.com.tw
Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2010-04-27 13:01:45 -06:00
..
Makefile viafb: yet another dead code removal 2010-03-12 15:52:33 -08:00
accel.c viafb: complete support for VX800/VX855 accelerated framebuffer 2010-04-20 14:23:20 -06:00
accel.h viafb: complete support for VX800/VX855 accelerated framebuffer 2010-04-20 14:23:20 -06:00
chip.h viafb: Determine type of 2D engine and store it in chip_info 2010-04-20 14:23:19 -06:00
debug.h
dvi.c viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00
dvi.h viafb: some dvi cleanup 2010-03-12 15:52:33 -08:00
global.c viafb: make some variables a bit less global 2010-03-12 15:52:33 -08:00
global.h viafb: make some variables a bit less global 2010-03-12 15:52:33 -08:00
hw.c viafb: Add 1200x900 DCON/LCD panel modes for OLPC XO-1.5 2010-04-20 14:23:20 -06:00
hw.h viafb: use proper pci config API 2010-04-20 14:23:18 -06:00
ioctl.c viafb: iface.c, iface.h, ioctl.c, ioctl.h 2008-10-16 11:21:41 -07:00
ioctl.h viafb: Add 1200x900 DCON/LCD panel modes for OLPC XO-1.5 2010-04-20 14:23:20 -06:00
lcd.c viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00
lcd.h viafb: Add 1200x900 DCON/LCD panel modes for OLPC XO-1.5 2010-04-20 14:23:20 -06:00
lcdtbl.h viafb: lcd.c, lcd.h, lcdtbl.h 2008-10-16 11:21:41 -07:00
share.h viafb: Add 1200x900 DCON/LCD panel modes for OLPC XO-1.5 2010-04-20 14:23:20 -06:00
tbl1636.c viafb: tbl1636.c, tbl1636.h, tblDPASetting.c, tblDPASetting.h 2008-10-16 11:21:41 -07:00
tbl1636.h viafb: tbl1636.c, tbl1636.h, tblDPASetting.c, tblDPASetting.h 2008-10-16 11:21:41 -07:00
tblDPASetting.c viafb: tbl1636.c, tbl1636.h, tblDPASetting.c, tblDPASetting.h 2008-10-16 11:21:41 -07:00
tblDPASetting.h viafb: tbl1636.c, tbl1636.h, tblDPASetting.c, tblDPASetting.h 2008-10-16 11:21:41 -07:00
via_i2c.c viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00
via_i2c.h viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00
via_utility.c viafb: remove dead code 2010-03-12 15:52:33 -08:00
via_utility.h viafb: remove dead code 2010-03-12 15:52:33 -08:00
viafbdev.c viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00
viafbdev.h viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00
viamode.c viafb: Add 1200x900 DCON/LCD panel modes for OLPC XO-1.5 2010-04-20 14:23:20 -06:00
viamode.h viafb: split global index up 2010-03-12 15:52:33 -08:00
vt1636.c viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00
vt1636.h viafb: rework the I2C support in the VIA framebuffer driver 2010-04-27 13:01:45 -06:00