drm/i915/lspcon: Get DDC adapter via container_of() instead of cached ptr
authorImre Deak <imre.deak@intel.com>
Mon, 24 Oct 2016 16:33:30 +0000 (19:33 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 26 Oct 2016 09:41:01 +0000 (12:41 +0300)
commita5d94b83ec709dbd90f17cba79142fde123d3869
tree3e8bf393d99a22c4b83a03577472774929acd6d6
parent12a47a422862214d3a715a0bd93140b8176dcdc9
drm/i915/lspcon: Get DDC adapter via container_of() instead of cached ptr

We can use the container_of() magic to get to the DDC adapter, so no
need for caching a pointer to it. We'll also need to get at the intel_dp
ptr in the following patch, so add a helper that can be used for both
purposes.

Cc: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1477326811-30431-8-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_lspcon.c