[PATCH 2/5] drm: Make the HPD status updates debug logs more readable

Jani Nikula jani.nikula at linux.intel.com
Thu May 9 23:27:08 PDT 2013


On Wed, 08 May 2013, Ville Syrjälä <ville.syrjala at linux.intel.com> wrote:
> On Wed, May 08, 2013 at 05:03:31PM +0100, Damien Lespiau wrote:
>> +static const char *connector_status_str(enum drm_connector_status status)
>> +{
>> +	switch (status) {
>> +	case connector_status_connected:
>> +		return "connected";
>> +	case connector_status_disconnected:
>> +		return "disconnected";
>> +	default:
>> +		return "unknown";
>> +	}
>> +}
>
> drm_get_connector_status_name()

...and export it and use in intel_hpd_irq_event() in i915/i915_irq.c too
please.

Jani.



More information about the dri-devel mailing list