]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: extract intel_acpi.h from i915_drv.h
authorJani Nikula <jani.nikula@intel.com>
Thu, 2 May 2019 15:02:42 +0000 (18:02 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 3 May 2019 07:06:37 +0000 (10:06 +0300)
commit4fbdd05c89a44d314391d9d5ee8047be4640ead2
tree9e0e87fda07580decb3f1b751291d0403e3b6c8c
parent9588afbfd728bab904632f9d2067e1da26d6d39b
drm/i915: extract intel_acpi.h from i915_drv.h

It used to be handy that we only had a couple of headers, but over time
i915_drv.h has become unwieldy. Extract declarations to a separate
header file corresponding to the implementation module, clarifying the
modularity of the driver.

Ensure the new header is self-contained, and do so with minimal further
includes, using forward declarations as needed. Include the new header
only where needed, and sort the modified include directives while at it
and as needed.

No functional changes.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/9bc1317a67df0b9d019eca5b36f474b76a1cad26.1556809195.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile.header-test
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_acpi.c
drivers/gpu/drm/i915/intel_acpi.h [new file with mode: 0644]
drivers/gpu/drm/i915/intel_display.c