public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] global variables from comon/lcd.c
@ 2013-01-05 18:16 Jeroen Hofstee
  2013-01-05 19:40 ` Wolfgang Denk
  2013-01-05 19:45 ` [U-Boot] [PATCH] common/lcd.c: cleanup use of global variables Wolfgang Denk
  0 siblings, 2 replies; 10+ messages in thread
From: Jeroen Hofstee @ 2013-01-05 18:16 UTC (permalink / raw)
  To: u-boot

Hi,

While looking at the common/lcd.c I fail to understand why it declares
and uses global variables like lcd_color_fg, lcd_color_color_bg, lcd_base
and relies on the drivers / boards to provide them, leading to code
duplication. It also provides getters / setters for some of these variables.

To me it seems more logical to have these variables in lcd.c itself. This
construction has been around since at least 2004 though, so I tend to
think I am missing something.

Does someone know the reason why these variables are not part
of lcd.c itself?

Regards,
Jeroen

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-03-29 10:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-05 18:16 [U-Boot] global variables from comon/lcd.c Jeroen Hofstee
2013-01-05 19:40 ` Wolfgang Denk
2013-01-05 19:45 ` [U-Boot] [PATCH] common/lcd.c: cleanup use of global variables Wolfgang Denk
2013-01-05 19:50   ` Wolfgang Denk
2013-01-06 22:43     ` Jeroen Hofstee
2013-01-12 17:07       ` Simon Glass
2013-01-06 23:33     ` Anatolij Gustschin
2013-01-12 17:06   ` Simon Glass
2013-01-25 21:26   ` Jeroen Hofstee
2013-03-29 10:56   ` Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox