Files
linux/drivers/gpu/drm
Geert Uytterhoeven 9b13a3fcd3 drm/format-helper: Rename drm_fb_xrgb8888_to_mono_reversed()
There is no "reversed" handling in drm_fb_xrgb8888_to_mono_reversed():
the function just converts from color to grayscale, and reduces the
number of grayscale levels from 256 to 2 (i.e. brightness 0-127 is
mapped to 0, 128-255 to 1).  All "reversed" handling is done in the
repaper driver, where this function originated.

Hence make this clear by renaming drm_fb_xrgb8888_to_mono_reversed() to
drm_fb_xrgb8888_to_mono(), and documenting the black/white pixel
mapping.

Fixes: bcf8b616de ("drm/format-helper: Add drm_fb_xrgb8888_to_mono_reversed()")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220317081830.1211400-2-geert@linux-m68k.org
2022-03-17 12:29:40 +01:00
..
2022-03-14 17:38:13 +02:00
2021-08-10 20:14:01 +02:00
2022-03-14 17:38:59 +02:00
2022-03-14 17:39:53 +02:00
2022-03-02 13:53:24 +00:00
2021-11-05 11:15:14 +01:00
2022-02-21 09:54:28 +01:00
2021-08-10 20:14:01 +02:00
2022-03-16 09:36:13 +01:00
2021-11-30 09:41:28 +01:00
2021-10-01 15:55:47 +02:00
2021-11-30 09:41:28 +01:00
2022-03-14 17:36:59 +02:00
2021-08-19 09:02:55 +09:00
2021-08-10 20:14:01 +02:00