[PATCH v3 11/50] drm/bridge: Add bridge driver for display connectors
Sam Ravnborg
sam at ravnborg.org
Sun Dec 15 12:03:31 UTC 2019
Hi Laurent.
One nit below.
> +
> +struct display_connector {
> + struct drm_bridge bridge;
> +
> + const char *label;
label is defined here.
> + struct gpio_desc *hpd_gpio;
> + int hpd_irq;
> +};
> +
...
> +
> + /* Get the optional connector label. */
> + of_property_read_string(pdev->dev.of_node, "label", &conn->label);
Assinged here.
> +
> + /*
> + * Get the HPD GPIO for DVI and HDMI connectors. If the GPIO can provide
> + * edge interrupts, register an interrupt handler.
> + */
...
> +
> + dev_info(&pdev->dev,
> + "Found %s display connector '%s' %s DDC bus and %s HPD GPIO (ops 0x%x)\n",
> + drm_get_connector_type_name(conn->bridge.type),
> + conn->label ? conn->label : "<unlabelled>",
> + conn->bridge.ddc ? "with" : "without",
> + conn->hpd_gpio ? "with" : "without",
> + conn->bridge.ops);
And this is the only user - within the same function where label is
assigned.
We could use a loacal variable, no need to have it in struct display_connector
unless futher use is planned.
Sam
More information about the dri-devel
mailing list