diff options
author | Jonathan Corbet <corbet@lwn.net> | 2009-12-01 22:29:39 -0500 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2010-05-07 19:15:47 -0400 |
commit | f045f77bc0bf238a871b10bea9e425329a8e4abc (patch) | |
tree | 085c6651bc6f4d47f4b4659fa4ef4134fe40733f /drivers/video/via/lcd.c | |
parent | 4da62e6c6e056d709e5dc04ac7c5e81692cf924f (diff) |
viafb: Move core stuff into via-core.c
The first step toward turning viafb into a multifunction driver. This
patch creates a new via-core.c file which serves as the main PCI driver;
everything else comes below that. Some work has been done to rationalize
the i2c drivers in this new scheme.
Cc: ScottFang@viatech.com.cn
Cc: JosephChan@via.com.tw
Cc: Harald Welte <laforge@gnumonks.org>
Acked-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'drivers/video/via/lcd.c')
-rw-r--r-- | drivers/video/via/lcd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/via/lcd.c b/drivers/video/via/lcd.c index e19441d9e49f..8ef60c035fa2 100644 --- a/drivers/video/via/lcd.c +++ b/drivers/video/via/lcd.c | |||
@@ -172,14 +172,14 @@ static bool lvds_identify_integratedlvds(void) | |||
172 | 172 | ||
173 | int viafb_lvds_trasmitter_identify(void) | 173 | int viafb_lvds_trasmitter_identify(void) |
174 | { | 174 | { |
175 | if (viafb_lvds_identify_vt1636(VIA_I2C_ADAP_31)) { | 175 | if (viafb_lvds_identify_vt1636(VIA_PORT_31)) { |
176 | viaparinfo->chip_info->lvds_chip_info.i2c_port = VIA_I2C_ADAP_31; | 176 | viaparinfo->chip_info->lvds_chip_info.i2c_port = VIA_PORT_31; |
177 | DEBUG_MSG(KERN_INFO | 177 | DEBUG_MSG(KERN_INFO |
178 | "Found VIA VT1636 LVDS on port i2c 0x31\n"); | 178 | "Found VIA VT1636 LVDS on port i2c 0x31\n"); |
179 | } else { | 179 | } else { |
180 | if (viafb_lvds_identify_vt1636(VIA_I2C_ADAP_2C)) { | 180 | if (viafb_lvds_identify_vt1636(VIA_PORT_2C)) { |
181 | viaparinfo->chip_info->lvds_chip_info.i2c_port = | 181 | viaparinfo->chip_info->lvds_chip_info.i2c_port = |
182 | VIA_I2C_ADAP_2C; | 182 | VIA_PORT_2C; |
183 | DEBUG_MSG(KERN_INFO | 183 | DEBUG_MSG(KERN_INFO |
184 | "Found VIA VT1636 LVDS on port gpio 0x2c\n"); | 184 | "Found VIA VT1636 LVDS on port gpio 0x2c\n"); |
185 | } | 185 | } |
@@ -419,7 +419,7 @@ static int lvds_register_read(int index) | |||
419 | { | 419 | { |
420 | u8 data; | 420 | u8 data; |
421 | 421 | ||
422 | viafb_i2c_readbyte(VIA_I2C_ADAP_2C, | 422 | viafb_i2c_readbyte(VIA_PORT_2C, |
423 | (u8) viaparinfo->chip_info->lvds_chip_info.lvds_chip_slave_addr, | 423 | (u8) viaparinfo->chip_info->lvds_chip_info.lvds_chip_slave_addr, |
424 | (u8) index, &data); | 424 | (u8) index, &data); |
425 | return data; | 425 | return data; |