summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMarcus Folkesson <marcus.folkesson@gmail.com>2025-07-21 13:43:31 +0300
committerJavier Martinez Canillas <javierm@redhat.com>2025-09-01 16:26:43 +0300
commitc4baa2d987c025076db8732abf8c44ccb9bcd8df (patch)
treec90b68c7b01cecbccec0c5e576e2eb30a2bbdfdc /drivers/gpu
parent6b53cf48d9339c75fa51927b0a67d8a6751066bd (diff)
downloadlinux-c4baa2d987c025076db8732abf8c44ccb9bcd8df.tar.xz
drm/st7571-i2c: correct pixel data format description
The comment describes the pixel data format as stated in the st7571 datasheet, which is not necessary the same as for the connected display. Instead, describe the expected pixel data format which is used for R1/R2/XRGB8888. Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Link: https://lore.kernel.org/r/20250721-st7571-format-v2-1-159f4134098c@gmail.com Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/sitronix/st7571-i2c.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/sitronix/st7571-i2c.c b/drivers/gpu/drm/sitronix/st7571-i2c.c
index dda99cbe5372..6f8142943428 100644
--- a/drivers/gpu/drm/sitronix/st7571-i2c.c
+++ b/drivers/gpu/drm/sitronix/st7571-i2c.c
@@ -386,10 +386,10 @@ static int st7571_fb_update_rect_grayscale(struct drm_framebuffer *fb, struct dr
* even if the format is monochrome.
*
* The bit values maps to the following grayscale:
- * 0 0 = White
- * 0 1 = Light gray
- * 1 0 = Dark gray
- * 1 1 = Black
+ * 0 0 = Black
+ * 0 1 = Dark gray
+ * 1 0 = Light gray
+ * 1 1 = White
*
* For monochrome formats, write the same value twice to get
* either a black or white pixel.