diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-05-02 18:02:47 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-05-03 10:06:55 +0300 |
commit | 3ce2ea6574be67b6efd6fb1a7f6e2c7aa27b82f1 (patch) | |
tree | e4103a74854b297aa7e7b64f7905966aca70fbaf /drivers/gpu/drm/i915/Makefile | |
parent | b30ed4cc2e8a5a1be4c6d85d6e18d08262749683 (diff) | |
download | linux-stable-3ce2ea6574be67b6efd6fb1a7f6e2c7aa27b82f1.tar.gz linux-stable-3ce2ea6574be67b6efd6fb1a7f6e2c7aa27b82f1.tar.bz2 linux-stable-3ce2ea6574be67b6efd6fb1a7f6e2c7aa27b82f1.zip |
drm/i915: extract intel_gmbus.h from i915_drv.h and rename intel_i2c.c
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.
While at it, rename intel_i2c.c to intel_gmbus.c and the functions to
intel_gmbus_*.
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/5834b8fbbfd4ac2e3d0159e69c87f6926066f537.1556809195.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/Makefile')
-rw-r--r-- | drivers/gpu/drm/i915/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile index 58643373495c..68106fe35a04 100644 --- a/drivers/gpu/drm/i915/Makefile +++ b/drivers/gpu/drm/i915/Makefile @@ -176,8 +176,8 @@ i915-y += dvo_ch7017.o \ intel_dsi_dcs_backlight.o \ intel_dsi_vbt.o \ intel_dvo.o \ + intel_gmbus.o \ intel_hdmi.o \ - intel_i2c.o \ intel_lspcon.o \ intel_lvds.o \ intel_panel.o \ |