[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/9] hw/display/omap_lcdc: Fix coding style issues in template he
From: |
Peter Maydell |
Subject: |
[PATCH 7/9] hw/display/omap_lcdc: Fix coding style issues in template header |
Date: |
Mon, 15 Feb 2021 10:32:13 +0000 |
Fix some minor coding style issues in the template header,
so checkpatch doesn't complain when we move the code.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/display/omap_lcd_template.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/display/omap_lcd_template.h b/hw/display/omap_lcd_template.h
index 22e51d9bffb..a2f86eee3c8 100644
--- a/hw/display/omap_lcd_template.h
+++ b/hw/display/omap_lcd_template.h
@@ -61,7 +61,7 @@ static void draw_line2_32(void *opaque, uint8_t *d, const
uint8_t *s,
b = (pal[v & 3] << 4) & 0xf0;
((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b);
d += 4;
- s ++;
+ s++;
width -= 4;
} while (width > 0);
}
@@ -88,7 +88,7 @@ static void draw_line4_32(void *opaque, uint8_t *d, const
uint8_t *s,
b = (pal[v & 0xf] << 4) & 0xf0;
((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b);
d += 4;
- s ++;
+ s++;
width -= 2;
} while (width > 0);
}
@@ -108,7 +108,7 @@ static void draw_line8_32(void *opaque, uint8_t *d, const
uint8_t *s,
g = pal[v] & 0xf0;
b = (pal[v] << 4) & 0xf0;
((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b);
- s ++;
+ s++;
d += 4;
} while (-- width != 0);
}
--
2.20.1
- [PATCH 0/9] arm: drop dead code for non-32-bit-RGB surfaces, Peter Maydell, 2021/02/15
- [PATCH 1/9] hw/arm/musicpal: Remove dead code for non-32-bit-RGB surfaces, Peter Maydell, 2021/02/15
- [PATCH 5/9] hw/display/omap_lcdc: Expand out macros in template header, Peter Maydell, 2021/02/15
- [PATCH 3/9] hw/display/tc6393xb: Expand out macros in template header, Peter Maydell, 2021/02/15
- [PATCH 4/9] hw/display/tc6393xb: Inline tc6393xb_draw_graphic32() at its callsite, Peter Maydell, 2021/02/15
- [PATCH 2/9] hw/display/tc6393xb: Remove dead code for handling non-32bpp surfaces, Peter Maydell, 2021/02/15
- [PATCH 6/9] hw/display/omap_lcdc: Drop broken bigendian ifdef, Peter Maydell, 2021/02/15
- [PATCH 7/9] hw/display/omap_lcdc: Fix coding style issues in template header,
Peter Maydell <=
- [PATCH 8/9] hw/display/omap_lcdc: Inline template header into C file, Peter Maydell, 2021/02/15
- [PATCH 9/9] hw/display/omap_lcdc: Delete unnecessary macro, Peter Maydell, 2021/02/15
- Re: [PATCH 0/9] arm: drop dead code for non-32-bit-RGB surfaces, Richard Henderson, 2021/02/15