linux/drivers/gpu/drm/arm
Thomas Zimmermann edcc9d24fb drm/arm/hdlcd: Replace struct simplefb_format with custom type
Map DRM FourCC codes to pixel descriptions with an internal struct
type. Avoid simplefb's struct simplefb_format, which is for parsing
"simple-framebuffer" DT nodes. Drop the unsupported formats with
alpha channel from the list.

The HDLCD drivers uses struct simplefb_format and its default
initializer SIMPLEFB_FORMATS to map DRM_FORMAT_ constants to pixel
descriptions. The simplefb helpers are for parsing "simple-framebuffer"
DT nodes and should be avoided in other context. Therefore replace it
in hdlcd with a custom struct type and pixel descriptions from
PIXEL_FORMAT_ constants.

This change also removes including <linux/platform_data/simplefb.h>,
which includes several unrelated headers, such as <linux/fb.h>.

v2:
- drop unsupported alpha formats (Liviu)
- keep original sorting of formats (Javier)
- use anonymous type for supported_formats

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://lore.kernel.org/r/20250610073027.322944-1-tzimmermann@suse.de
2025-06-11 09:29:47 +02:00
..
display drm-misc-next for v6.15: 2025-02-14 10:24:02 +10:00
hdlcd_crtc.c drm/arm/hdlcd: Replace struct simplefb_format with custom type 2025-06-11 09:29:47 +02:00
hdlcd_drv.c Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2024-12-09 16:35:21 +01:00
hdlcd_drv.h
hdlcd_regs.h
Kconfig drm/i2c: move TDA998x driver under drivers/gpu/drm/bridge 2025-02-13 00:19:41 +02:00
Makefile
malidp_crtc.c
malidp_drv.c Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2024-12-09 16:35:21 +01:00
malidp_drv.h
malidp_hw.c
malidp_hw.h
malidp_mw.c drm/connector: make mode_valid take a const struct drm_display_mode 2025-01-07 12:45:19 +02:00
malidp_mw.h
malidp_planes.c
malidp_regs.h