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
This commit is contained in:
Peter Maydell 2021-02-15 10:32:15 +00:00
parent 1cccdd1807
commit cfb08215ca
1 changed files with 1 additions and 3 deletions

View File

@ -70,8 +70,6 @@ static void omap_lcd_interrupts(struct omap_lcd_panel_s *s)
qemu_irq_lower(s->irq); qemu_irq_lower(s->irq);
} }
#define draw_line_func drawfn
/* /*
* 2-bit colour * 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; struct omap_lcd_panel_s *omap_lcd = (struct omap_lcd_panel_s *) opaque;
DisplaySurface *surface; DisplaySurface *surface;
draw_line_func draw_line; drawfn draw_line;
int size, height, first, last; int size, height, first, last;
int width, linesize, step, bpp, frame_offset; int width, linesize, step, bpp, frame_offset;
hwaddr frame_base; hwaddr frame_base;