Re: [PATCH v3 11/50] drm/bridge: Add bridge driver for display connectors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux