1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/tiny
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
..
arcpgu.c drm/arc: Use drm_module_platform_driver() to register the driver 2022-01-27 19:15:47 +01:00
bochs.c drm/bochs: Replace module-init boiler-plate code with DRM helpers 2022-01-19 18:40:00 +01:00
cirrus.c drm/cirrus: Replace module-init boiler-plate code with DRM helpers 2022-01-19 18:40:06 +01:00
gm12u320.c drm/gm12u320: Use offset-adjusted shadow-plane mappings 2021-08-08 20:27:37 +02:00
hx8357d.c drm/tiny: drm_gem_simple_display_pipe_prepare_fb is the default 2021-06-24 15:40:11 +02:00
ili9163.c drm/tiny: ili9163: fix build 2021-10-15 20:37:42 +02:00
ili9225.c drm/tiny: drm_gem_simple_display_pipe_prepare_fb is the default 2021-06-24 15:40:11 +02:00
ili9341.c drm/tiny: drm_gem_simple_display_pipe_prepare_fb is the default 2021-06-24 15:40:11 +02:00
ili9486.c drm/tiny: drm_gem_simple_display_pipe_prepare_fb is the default 2021-06-24 15:40:11 +02:00
Kconfig drm/tiny: Add MIPI DBI compatible SPI driver 2022-02-28 10:29:33 +01:00
Makefile drm/tiny: Add MIPI DBI compatible SPI driver 2022-02-28 10:29:33 +01:00
mi0283qt.c drm/tiny: drm_gem_simple_display_pipe_prepare_fb is the default 2021-06-24 15:40:11 +02:00
panel-mipi-dbi.c drm/tiny: Add MIPI DBI compatible SPI driver 2022-02-28 10:29:33 +01:00
repaper.c drm/format-helper: Rename drm_fb_xrgb8888_to_mono_reversed() 2022-03-17 12:29:40 +01:00
simpledrm.c drm/simpledrm: Add "panel orientation" property on non-upright mounted LCD panels 2022-02-23 13:17:50 +01:00
st7586.c drm/format-helper: Rework format-helper conversion functions 2021-11-11 12:06:57 +01:00
st7735r.c drm/tiny: drm_gem_simple_display_pipe_prepare_fb is the default 2021-06-24 15:40:11 +02:00