diff options
| author | Geert Uytterhoeven <[email protected]> | 2022-03-17 09:18:26 +0100 |
|---|---|---|
| committer | Javier Martinez Canillas <[email protected]> | 2022-03-17 12:29:40 +0100 |
| commit | 9b13a3fcd35fc24045d2fd0f0e13ddd8d7985b4b (patch) | |
| tree | e8b78229491556d87aa1b169cedb3a6c17442152 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | aa457ff1b2be72c0d89ee2118769859e513e6fc8 (diff) | |
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: bcf8b616deb87941 ("drm/format-helper: Add drm_fb_xrgb8888_to_mono_reversed()")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Javier Martinez Canillas <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Javier Martinez Canillas <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions