diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2009-09-22 19:47:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:52 -0400 |
commit | c4df5489e40e55f2962b9e8100ebc0d4d1374415 (patch) | |
tree | caf6538a909b8578dd45f6dcbd45ed4a7281ef21 /drivers/video/via/lcd.c | |
parent | 68fa92082ffda84adcbae06fdd307fca53469c25 (diff) |
viafb: improve viafb_par
This patch introduces viafb_shared and is the beginning of a smooth
transition to use it.
viafb_shared should contain all general, non-surface specific data that
should be shared along all viafb framebuffers while viafb_par should only
contain things that are specific to each surface or in other words extend
fb_info. This change is intended to clean the dual/multi framebuffer
handling up.
This removes the annoyance that viafbinfo1->par points to a different
structure than viaparinfo1.
As the last change is fundamental it is difficult to ensure that all parts
of the driver do not depend on the previous brokenness but the chance of
regressions is very low.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Scott Fang <ScottFang@viatech.com.cn>
Cc: Joseph Chan <JosephChan@via.com.tw>
Cc: Harald Welte <laforge@gnumonks.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/via/lcd.c')
-rw-r--r-- | drivers/video/via/lcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/via/lcd.c b/drivers/video/via/lcd.c index 78c6b3387947..144d34bdf0ac 100644 --- a/drivers/video/via/lcd.c +++ b/drivers/video/via/lcd.c | |||
@@ -207,13 +207,13 @@ static bool lvds_identify_integratedlvds(void) | |||
207 | 207 | ||
208 | int viafb_lvds_trasmitter_identify(void) | 208 | int viafb_lvds_trasmitter_identify(void) |
209 | { | 209 | { |
210 | viaparinfo->i2c_stuff.i2c_port = I2CPORTINDEX; | 210 | viaparinfo->shared->i2c_stuff.i2c_port = I2CPORTINDEX; |
211 | if (viafb_lvds_identify_vt1636()) { | 211 | if (viafb_lvds_identify_vt1636()) { |
212 | viaparinfo->chip_info->lvds_chip_info.i2c_port = I2CPORTINDEX; | 212 | viaparinfo->chip_info->lvds_chip_info.i2c_port = I2CPORTINDEX; |
213 | DEBUG_MSG(KERN_INFO | 213 | DEBUG_MSG(KERN_INFO |
214 | "Found VIA VT1636 LVDS on port i2c 0x31 \n"); | 214 | "Found VIA VT1636 LVDS on port i2c 0x31 \n"); |
215 | } else { | 215 | } else { |
216 | viaparinfo->i2c_stuff.i2c_port = GPIOPORTINDEX; | 216 | viaparinfo->shared->i2c_stuff.i2c_port = GPIOPORTINDEX; |
217 | if (viafb_lvds_identify_vt1636()) { | 217 | if (viafb_lvds_identify_vt1636()) { |
218 | viaparinfo->chip_info->lvds_chip_info.i2c_port = | 218 | viaparinfo->chip_info->lvds_chip_info.i2c_port = |
219 | GPIOPORTINDEX; | 219 | GPIOPORTINDEX; |
@@ -470,7 +470,7 @@ static int lvds_register_read(int index) | |||
470 | { | 470 | { |
471 | u8 data; | 471 | u8 data; |
472 | 472 | ||
473 | viaparinfo->i2c_stuff.i2c_port = GPIOPORTINDEX; | 473 | viaparinfo->shared->i2c_stuff.i2c_port = GPIOPORTINDEX; |
474 | viafb_i2c_readbyte((u8) viaparinfo->chip_info-> | 474 | viafb_i2c_readbyte((u8) viaparinfo->chip_info-> |
475 | lvds_chip_info.lvds_chip_slave_addr, | 475 | lvds_chip_info.lvds_chip_slave_addr, |
476 | (u8) index, &data); | 476 | (u8) index, &data); |