OSDN Git Service

drm/i915: move generic hotplug code into new intel_hotplug.c file
authorJani Nikula <jani.nikula@intel.com>
Thu, 18 Jun 2015 10:06:16 +0000 (13:06 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Jun 2015 13:03:42 +0000 (15:03 +0200)
commit77913b39addfaa836929815515ff55cea1142b66
tree704989b6f794f8a39e557b1b9f361ab6025123c9
parent10b0e9e904c409be8e2476058d9b19a6b37d619e
drm/i915: move generic hotplug code into new intel_hotplug.c file

We have enough generic hotplug functions sprinkled all over i915_irq.c
to warrant moving them to a file of their own. This should further
underline the distinction between generic code in the new file and
platform specific hotplug and irq code that remains in i915_irq.c.

Add new intel_hpd_init_work to keep work functions static, and rename
get_port_from_pin to intel_hpd_pin_to_port while increasing its
visibility, but keep everything else the same.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_hotplug.c [new file with mode: 0644]