Skip to content

Commit d021d75

Browse files
committed
drm/panel-simple: drop use of data-mapping property
The "data-mapping" property may not be the best way to describe the interface between panels and display interfaces. Drop use of in the panel-simple driver, so we have time to find the right way to describe this interface. Fixes: 4a1d0db ("drm/panel: simple: add panel-dpi support") Cc: Sam Ravnborg <[email protected]> Cc: Oleksandr Suvorov <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: [email protected] Cc: Rob Herring <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 99f155d commit d021d75

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ static int panel_dpi_probe(struct device *dev,
361361
struct panel_desc *desc;
362362
unsigned int bus_flags;
363363
struct videomode vm;
364-
const char *mapping;
365364
int ret;
366365

367366
np = dev->of_node;
@@ -386,16 +385,6 @@ static int panel_dpi_probe(struct device *dev,
386385
of_property_read_u32(np, "width-mm", &desc->size.width);
387386
of_property_read_u32(np, "height-mm", &desc->size.height);
388387

389-
of_property_read_string(np, "data-mapping", &mapping);
390-
if (!strcmp(mapping, "rgb24"))
391-
desc->bus_format = MEDIA_BUS_FMT_RGB888_1X24;
392-
else if (!strcmp(mapping, "rgb565"))
393-
desc->bus_format = MEDIA_BUS_FMT_RGB565_1X16;
394-
else if (!strcmp(mapping, "bgr666"))
395-
desc->bus_format = MEDIA_BUS_FMT_RGB666_1X18;
396-
else if (!strcmp(mapping, "lvds666"))
397-
desc->bus_format = MEDIA_BUS_FMT_RGB666_1X24_CPADHI;
398-
399388
/* Extract bus_flags from display_timing */
400389
bus_flags = 0;
401390
vm.flags = timing->flags;

0 commit comments

Comments
 (0)