summaryrefslogtreecommitdiffstats
path: root/hw/display/omap_lcdc.c
diff options
context:
space:
mode:
authorPeter Maydell2021-02-15 11:32:15 +0100
committerPeter Maydell2021-03-06 14:30:38 +0100
commitcfb08215ca3b8df4662e08328f91d43c2603f4b2 (patch)
tree3aaec97f206c78730ccc76a54bbd5ee67a37a3a6 /hw/display/omap_lcdc.c
parenthw/display/omap_lcdc: Inline template header into C file (diff)
downloadqemu-cfb08215ca3b8df4662e08328f91d43c2603f4b2.tar.gz
qemu-cfb08215ca3b8df4662e08328f91d43c2603f4b2.tar.xz
qemu-cfb08215ca3b8df4662e08328f91d43c2603f4b2.zip
hw/display/omap_lcdc: Delete unnecessary macro
The macro draw_line_func is used only once; just expand it. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20210215103215.4944-10-peter.maydell@linaro.org
Diffstat (limited to 'hw/display/omap_lcdc.c')
-rw-r--r--hw/display/omap_lcdc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/display/omap_lcdc.c b/hw/display/omap_lcdc.c
index 2db04fad2f..0ba42ef637 100644
--- a/hw/display/omap_lcdc.c
+++ b/hw/display/omap_lcdc.c
@@ -70,8 +70,6 @@ static void omap_lcd_interrupts(struct omap_lcd_panel_s *s)
qemu_irq_lower(s->irq);
}
-#define draw_line_func drawfn
-
/*
* 2-bit colour
*/
@@ -202,7 +200,7 @@ static void omap_update_display(void *opaque)
{
struct omap_lcd_panel_s *omap_lcd = (struct omap_lcd_panel_s *) opaque;
DisplaySurface *surface;
- draw_line_func draw_line;
+ drawfn draw_line;
int size, height, first, last;
int width, linesize, step, bpp, frame_offset;
hwaddr frame_base;