]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Set aux.dev to the drm_connector device, instead of drm_device.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 21 Jan 2016 23:10:20 +0000 (15:10 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 14 Feb 2016 18:21:01 +0000 (19:21 +0100)
commit3d6f34c7ef9600ef3265dcd9a9984d71cda545b7
treed40482b747d60d80ae603d1542441080ff523504
parent6f8c1dcd4571951535873106ab4102fcb4a08c7a
drm/i915: Set aux.dev to the drm_connector device, instead of drm_device.

So far, the i915 driver and some other drivers set it to the drm_device,
which doesn't allow one to know which DP a given aux channel is related
to. Changing this to be the drm_connector provides proper nesting, still
allowing one to get the drm_device from it. Some drivers already set it
to the drm_connector.

This also removes the need to add a sysfs link for the i2c device under
the connector, as it will already be there.

v9:
 - As a side effect, drm_dp_aux_unregister() must be called before
 intel_connector_unregister(), as both the aux.dev and the i2c adapter
 dev are children of the drm_connector device now. Calling
 drm_dp_aux_unregister() before prevents them from being destroyed
 twice.

v10:
 - move aux_fini() to connector_unregister(), instead of moving
 drm_dp_aux_unregister() outside of connector_register().

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1453417821-2811-4-git-send-email-rafael.antognolli@intel.com
drivers/gpu/drm/i915/intel_dp.c