All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] video: Avoid #ifdef to increase build coverage
@ 2019-12-21  1:10 Simon Glass
  2019-12-21  1:10 ` [PATCH 1/5] video: x86: Enable 32-bit graphics by default Simon Glass
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Simon Glass @ 2019-12-21  1:10 UTC (permalink / raw)
  To: u-boot

A recent change to the video subsystem added more #ifdefs to the code but
these are not necessary. In fact we can often rely on the compiler to drop
dead code. Using the IS_ENABLED() macros with if() can produce the same
result while reducing the number of build combinations in the code.

This series removes most #ifdefs from the core video code. Code size for
wandaboard (for example) does not change.

It also includes a patch to enable 32bpp video on x86, since video is
currently broken.


Simon Glass (5):
  video: x86: Enable 32-bit graphics by default
  video: Avoid using #ifdef in video blitting code
  video: Avoid using #ifdef in console_rotate.c
  video: Avoid using #ifdef in vidconsole-uclass.c
  video: Avoid using #ifdef in video-uclass.c

 drivers/video/Kconfig             |   5 +-
 drivers/video/console_normal.c    | 125 ++++++------
 drivers/video/console_rotate.c    | 325 +++++++++++++++---------------
 drivers/video/vidconsole-uclass.c |  22 +-
 drivers/video/video-uclass.c      |  54 +++--
 5 files changed, 256 insertions(+), 275 deletions(-)

-- 
2.24.1.735.g03f4e72817-goog

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

end of thread, other threads:[~2020-01-04 10:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-21  1:10 [PATCH 0/5] video: Avoid #ifdef to increase build coverage Simon Glass
2019-12-21  1:10 ` [PATCH 1/5] video: x86: Enable 32-bit graphics by default Simon Glass
     [not found]   ` <20200102153306.59fd28f9@crub>
2020-01-03  2:29     ` Simon Glass
2020-01-03  2:41       ` Bin Meng
2020-01-03  3:24         ` Simon Glass
2020-01-03 15:41           ` Bin Meng
2020-01-03 16:16             ` Anatolij Gustschin
2019-12-21  1:10 ` [PATCH 2/5] video: Avoid using #ifdef in video blitting code Simon Glass
2019-12-21  1:10 ` [PATCH 3/5] video: Avoid using #ifdef in console_rotate.c Simon Glass
2019-12-21  1:10 ` [PATCH 4/5] video: Avoid using #ifdef in vidconsole-uclass.c Simon Glass
2019-12-21  1:10 ` [PATCH 5/5] video: Avoid using #ifdef in video-uclass.c Simon Glass
2020-01-04 10:45 ` [PATCH 0/5] video: Avoid #ifdef to increase build coverage Anatolij Gustschin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.